| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace addons\ServeBonus\console\migrations;
- use yii\db\Migration;
- /**
- * Class M240525033856AddColumnServebonusLevel
- */
- class M240525033856AddColumnServebonusLevel extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $this->execute("ALTER TABLE `qimall_addons_servebonus_level` ADD COLUMN `is_to_bonus` TINYINT NOT NULL DEFAULT 0 COMMENT '服务商分红,0关闭,1开启'");
- $this->execute("ALTER TABLE `qimall_addons_servebonus_level` ADD COLUMN `to_bonus_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '达到指定金额停止分红'");
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M240525033856AddColumnServebonusLevel cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M240525033856AddColumnServebonusLevel cannot be reverted.\n";
- return false;
- }
- */
- }
|