mirror of
https://gitee.com/ShopeX/ECShopX
synced 2026-08-02 18:46:13 +08:00
29 lines
928 B
PHP
29 lines
928 B
PHP
<?php
|
|
|
|
namespace Database\Migrations;
|
|
|
|
use Doctrine\Migrations\AbstractMigration;
|
|
use Doctrine\DBAL\Schema\Schema as Schema;
|
|
|
|
class Version20251110125744 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 membercard_grade ADD grade_background varchar(1024) DEFAULT "" COMMENT \'等级背景\'');
|
|
//$this->addSql('ALTER TABLE items_category ADD invoice_tax_rate varchar(16) DEFAULT "" COMMENT \'发票税率\'');
|
|
}
|
|
|
|
/**
|
|
* @param Schema $schema
|
|
*/
|
|
public function down(Schema $schema): void
|
|
{
|
|
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.');
|
|
}
|
|
}
|