| 123456789101112131415161718192021222324252627282930 |
- <?php
- namespace app\migrations;
- use yii\db\Migration;
- /**
- * Class M240606071812AddStoreIdToQimallGoodsSpecsTable
- */
- class M240606071812AddStoreIdToQimallGoodsSpecsTable extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- // 增加store_id字段到qimall_goods_specs表
- // $this->addColumn('qimall_goods_specs', 'store_id', $this->integer()->notNull()->defaultValue(0)->comment('Store ID'));
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- // 移除store_id字段
- // $this->dropColumn('qimall_goods_specs', 'store_id');
- }
- }
|