mirror of
https://gitee.com/ShopeX/ECShopX
synced 2026-05-14 18:35:37 +08:00
26 lines
927 B
PHP
26 lines
927 B
PHP
<?php
|
||
|
||
namespace Database\Migrations;
|
||
|
||
use Doctrine\Migrations\AbstractMigration;
|
||
use Doctrine\DBAL\Schema\Schema as Schema;
|
||
|
||
class Version20260108161332 extends AbstractMigration
|
||
{
|
||
/**
|
||
* @param Schema $schema
|
||
*/
|
||
public function up(Schema $schema): void
|
||
{
|
||
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.');
|
||
$this->addSql('ALTER TABLE distribution_distributor ADD payment_subject SMALLINT DEFAULT 0 NOT NULL COMMENT \'收款主体,0=平台,1=店铺\', CHANGE created created bigint NOT NULL, CHANGE updated updated bigint NOT NULL');
|
||
}
|
||
|
||
/**
|
||
* @param Schema $schema
|
||
*/
|
||
public function down(Schema $schema): void
|
||
{
|
||
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.');
|
||
}
|
||
}
|