| 123456789101112131415161718192021222324252627282930313233 |
- <?php
- namespace addons\Rebate\console\migrations;
- use yii\db\Migration;
- /**
- * Class M240829104723AddColunmIsGrantToRebate
- */
- class M240829104723AddColunmIsGrantToRebate extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = <<<SQL
- ALTER TABLE `qimall_addons_rebate` ADD COLUMN `is_grant` int(1) NULL DEFAULT 0 COMMENT '优惠/抵扣不发奖开关:1开启 0关闭';
- SQL;
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M240829104723AddColunmIsGrantToRebate cannot be reverted.\n";
- return false;
- }
- }
|