| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- namespace app\migrations;
- use yii\db\Migration;
- /**
- * Class M240724072622AlterQimallGoodsAssociation
- */
- class M240724072622AlterQimallGoodsAssociation extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = "ALTER TABLE `qimall_goods_association`
- ADD COLUMN `store_id` int(11) NOT NULL DEFAULT 0 COMMENT 'o2o门店id' AFTER `updated_at`;";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M240724072622AlterQimallGoodsAssociation cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M240724072622AlterQimallGoodsAssociation cannot be reverted.\n";
- return false;
- }
- */
- }
|