| 12345678910111213141516171819202122232425262728293031323334 |
- <?php
- namespace addons\Store\console\migrations;
- use yii\db\Migration;
- /**
- * Class M240929095823AddColumnCategoryWwitchToStore
- */
- class M240929095823AddColumnCategoryWwitchToStore extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = <<<SQL
- ALTER TABLE `qimall_addons_store`
- ADD COLUMN `store_category_switch` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '门店分类开关' AFTER `default_store_cate_style`;
- SQL;
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M240929095823AddColumnCategoryWwitchToStore cannot be reverted.\n";
- return false;
- }
- }
|