| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- namespace addons\HiGo\console\migrations;
- use yii\db\Migration;
- /**
- * Class M221123083115AddColumnToQimallAddonsHigoMerchantRewardLog
- */
- class M221123083115AddColumnToQimallAddonsHigoMerchantRewardLog extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- try {
- $this->addColumn('qimall_addons_higo_merchant_reward_log','mode_status', $this->tinyInteger(3)->notNull()->defaultValue(0)->comment('是否分佣:0-否,1-冻结,2-完成'));
- } catch (\Exception $e) {
- \Yii::error('qimall_addons_higo_merchant_reward_log表添加字段报错' . $e->getMessage());
- }
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M221123083115AddColumnToQimallAddonsHigoMerchantRewardLog cannot be reverted.\n";
- return false;
- }
- }
|