mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
Default to 1
This commit is contained in:
parent
54e2fd6c88
commit
ab5e11450d
2 changed files with 6 additions and 2 deletions
|
|
@ -25,7 +25,7 @@ final class Version20241024174728 extends AbstractMigration
|
|||
|
||||
public function up(Schema $schema): void
|
||||
{
|
||||
$this->addSql('ALTER TABLE sylius_gateway_config ADD use_payum TINYINT(1) NOT NULL');
|
||||
$this->addSql('ALTER TABLE sylius_gateway_config ADD use_payum TINYINT(1) DEFAULT 1 NOT NULL');
|
||||
}
|
||||
|
||||
public function down(Schema $schema): void
|
||||
|
|
|
|||
|
|
@ -17,6 +17,10 @@
|
|||
http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd"
|
||||
>
|
||||
<mapped-superclass name="Sylius\Bundle\PayumBundle\Model\GatewayConfig" table="sylius_gateway_config">
|
||||
<field name="usePayum" column="use_payum" />
|
||||
<field type="boolean" name="usePayum" column="use_payum" >
|
||||
<options>
|
||||
<option name="default">1</option>
|
||||
</options>
|
||||
</field>
|
||||
</mapped-superclass>
|
||||
</doctrine-mapping>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue