M250225103458AddStore.php 625 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace addons\Store\console\migrations;
  3. use yii\db\Migration;
  4. class M250225103458AddStore extends Migration
  5. {
  6. /**
  7. * {@inheritdoc}
  8. */
  9. public function safeUp()
  10. {
  11. $sql = <<<SQL
  12. ALTER TABLE `qimall_addons_store`
  13. ADD COLUMN `is_examine` int(10) NULL COMMENT '审核方式:-1:后台添加,0:h5申请,不用审核,>0:h5申请,需要审核,记录审核人ID';
  14. SQL;
  15. $this->execute($sql);
  16. }
  17. /**
  18. * {@inheritdoc}
  19. */
  20. public function safeDown()
  21. {
  22. echo "M250225103458AddStore cannot be reverted.\n";
  23. return false;
  24. }
  25. }