Files
ECShopX/database/migrations/Version00000000000051.php
2025-12-29 22:14:41 +08:00

28 lines
777 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 Version00000000000051 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 aftersales_detail ADD refunded_num BIGINT DEFAULT 0 COMMENT \'退款数量\'');
$this->addSql('ALTER TABLE items ADD delivery_time INT DEFAULT 0 COMMENT \'发货时间如2表示2天发货\'');
}
/**
* @param Schema $schema
*/
public function down(Schema $schema): void
{
}
}