| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- namespace addons\ScoreExpansion\console\migrations;
- use yii\db\Migration;
- /**
- * Class M230407032025InsertScoreExpansionRateTask
- */
- class M230407032025InsertScoreExpansionRateTask extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = "ALTER TABLE `qimall_addons_score_expansion_rate_task` ADD COLUMN `source_table` varchar(24) NULL COMMENT '来源' AFTER `order_id`";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M230407032025InsertScoreExpansionRateTask cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M230407032025InsertScoreExpansionRateTask cannot be reverted.\n";
- return false;
- }
- */
- }
|