| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- namespace addons\ScoreExpansion\console\migrations;
- use yii\db\Migration;
- /**
- * Class M230407031049InsertScoreExpansionGoodsSetting
- */
- class M230407031049InsertScoreExpansionGoodsSetting extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = "ALTER TABLE `qimall_addons_score_expansion_goods_setting` ADD COLUMN `parent` tinyint(2) NULL DEFAULT 0 COMMENT '是否是直推上级的设置 1是 0 否' AFTER `status`";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M230407031049InsertScoreExpansionGoodsSetting cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M230407031049InsertScoreExpansionGoodsSetting cannot be reverted.\n";
- return false;
- }
- */
- }
|