| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- namespace addons\Agent\console\migrations;
- use yii\db\Migration;
- /**
- * Class M250707080153AddColumnToAgentLevel
- */
- class M250707080153AddColumnToAgentLevel extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = <<<SQL
- ALTER TABLE `qimall_addons_agent_level`
- ADD COLUMN `is_custom_condition_num` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否自定义升级商品条件数量';
- SQL;
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M250707080153AddColumnToAgentLevel cannot be reverted.\n";
- return false;
- }
- */
- }
|