| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- namespace addons\Rebate\console\migrations;
- use yii\db\Migration;
- /**
- * Class M240711070022AlertQimallRebate
- */
- class M240711070022AlertQimallRebate extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- try {
- $sql="ALTER TABLE `qimall_addons_rebate` ADD COLUMN `is_grant` int(1) NULL DEFAULT 0 COMMENT '优惠/抵扣不发奖开关:1开启 0关闭';";
- $this->execute($sql);
- } catch (\Exception $e) {
- }
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M240711070022AlertQimallRebate cannot be reverted.\n";
- return false;
- }
- */
- }
|