| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- namespace addons\Store\console\migrations;
- use yii\db\Migration;
- /**
- * Class M240828030707AlterQimallAddonsStoreCommission
- */
- class M240828030707AlterQimallAddonsStoreCommission extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $this->execute("
- ALTER TABLE qimall_addons_store_commission add `amount_received_score` decimal(12,2) NOT NULL DEFAULT '0.00' COMMENT '到账积分';
- ALTER TABLE qimall_addons_store_commission add `score_deduct_num` decimal(12,2) NOT NULL DEFAULT '0.00' COMMENT '抵扣积分数量';");
- $this->execute("ALTER table qimall_addons_store_commission add score_deduction_bear tinyint(1) not null default -1 COMMENT '积分抵扣-优惠承担对象 -1:未开启积分抵扣;0:平台:1:门店'");
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M240828030707AlterQimallAddonsStoreCommission cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M240828030707AlterQimallAddonsStoreCommission cannot be reverted.\n";
- return false;
- }
- */
- }
|