| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- namespace addons\Boss\console\migrations;
- use yii\db\Migration;
- /**
- * Class M241030085621AlterBossLevelSetting
- */
- class M250414145621AlterAddonsBossCommissionItemSetting extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = "ALTER TABLE `qimall_addons_boss_commission_item_setting`
- ADD COLUMN `is_extra_scale_ratio` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否开启额外计算比例:0否 1是',
- ADD COLUMN `extra_scale_ratio` decimal(10, 2) NOT NULL DEFAULT 0 COMMENT '额外计算比例';";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M250414145621AlterAddonsBossCommissionItemSetting cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M241030085621AlterBossLevelSetting cannot be reverted.\n";
- return false;
- }
- */
- }
|