This commit is contained in:
wanghai
2026-06-05 19:33:52 +08:00
parent 4584fde5e5
commit 1895a0fbd9
12 changed files with 99 additions and 45 deletions

View File

@@ -0,0 +1,26 @@
<?php
namespace Database\Migrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema as Schema;
class Version20260602100000 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 employee_purchase_activities ADD list_pic VARCHAR(255) DEFAULT \'\' NOT NULL COMMENT \'活动列表海报\'');
}
/**
* @param Schema $schema
*/
public function down(Schema $schema): void
{
}
}