Files
ECShopX/database/migrations/Version20260804170000.php
wanghai 713413c9dc 4.12.0
2026-08-10 08:01:45 +08:00

28 lines
761 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace Database\Migrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema as Schema;
class Version20260804170000 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 selfservice_registration_activity ADD is_show INT NOT NULL DEFAULT 1 COMMENT \'是否展示(1展示 0隐藏)\'');
// 历史数据自动为 1展示不影响线上已有活动
}
/**
* @param Schema $schema
*/
public function down(Schema $schema): void
{
}
}