| 1234567891011121314151617181920212223242526272829303132 |
- <?php
- namespace addons\Store\console\migrations;
- use yii\db\Migration;
- class M250225103458AddStore extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = <<<SQL
- ALTER TABLE `qimall_addons_store`
- ADD COLUMN `is_examine` int(10) NULL COMMENT '审核方式:-1:后台添加,0:h5申请,不用审核,>0:h5申请,需要审核,记录审核人ID';
- SQL;
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M250225103458AddStore cannot be reverted.\n";
- return false;
- }
-
- }
|