| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- namespace addons\Recharge\console\migrations;
- use yii\db\Migration;
- /**
- * Class M230423035037AddGiveConditionToRechargeLog
- */
- class M230423035037AddGiveConditionToRechargeLog extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = "ALTER TABLE `qimall_addons_recharge_log`
- ADD COLUMN `give_condition` decimal(10,2) NOT NULL DEFAULT 0 COMMENT '达标的赠送条件' AFTER `updated_at`;";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M230423035037AddGiveConditionToRechargeLog cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M230423035037AddGiveConditionToRechargeLog cannot be reverted.\n";
- return false;
- }
- */
- }
|