| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- namespace app\migrations;
- use yii\db\Migration;
- /**
- * Class M240711095805AlterQimallGoodsExtra
- */
- class M240711095805AlterQimallGoodsExtra extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = "ALTER TABLE `qimall_goods_extra` ";
- $sql .= "ADD COLUMN `enable_full_reduce` tinyint(1) NULL DEFAULT 1 COMMENT '是否开启满额减免' AFTER `goods_id`;";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M240711095805AlterQimallGoodsExtra cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M240711095805AlterQimallGoodsExtra cannot be reverted.\n";
- return false;
- }
- */
- }
|