| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php
- namespace addons\CloudStock\console\migrations;
- use yii\db\Migration;
- /**
- * Class M241230063740AlterQimallAddonsCloudStockPriceDifferenceGiftPackage
- */
- class M241230063740AlterQimallAddonsCloudStockPriceDifferenceGiftPackage extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = "
- ALTER table qimall_addons_cloud_stock_price_difference_gift_package add not_get_price_difference tinyint(1) not null DEFAULT 0 COMMENT '开启后若代理商获得推荐奖励,则不会同时得到差价奖 1:开启;0:关闭';
- ALTER table qimall_addons_cloud_stock_price_difference_gift_package add not_distribute_payment_for_goods tinyint(1) not null DEFAULT 0 COMMENT '开启后若推荐奖发放到货款者后不再发出 1:开启;0:关闭';
- ALTER table qimall_addons_cloud_stock_price_difference_order_detail add is_send_recommend_reward tinyint(1) not null DEFAULT 0 COMMENT '是否发放推荐奖励';
- ";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M241230063740AlterQimallAddonsCloudStockPriceDifferenceGiftPackage cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M241230063740AlterQimallAddonsCloudStockPriceDifferenceGiftPackage cannot be reverted.\n";
- return false;
- }
- */
- }
|