| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- namespace app\migrations;
- use yii\db\Migration;
- /**
- *
- * Class M221214071210AlterQimallOrder
- */
- class M221214071210AlterQimallOrder extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = "ALTER TABLE `qimall_order` ADD COLUMN `reduce_shipping_money` decimal(10, 2) NULL DEFAULT 0.00 COMMENT '满邮减免' AFTER `shipping_money`;";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M221214071210AlterQimallOrder cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M221214071210AlterQimallOrder cannot be reverted.\n";
- return false;
- }
- */
- }
|