| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- namespace addons\Boss\console\migrations;
- use yii\db\Migration;
- /**
- * Class M230703093844QimallAddonsBossLevelSetting
- */
- class M230703093844QimallAddonsBossLevelSetting extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = "ALTER TABLE `qimall_addons_boss_level_setting` ";
- $sql .= "ADD COLUMN `is_performance` TINYINT ( 4 ) NOT NULL DEFAULT '0' COMMENT '是否开启业绩分红',";
- $sql .= "ADD COLUMN `performance_rate` DECIMAL ( 10, 2 ) NOT NULL DEFAULT '0.00' COMMENT '业绩分红比率';";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M230703093844QimallAddonsBossLevelSetting cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M230703093844QimallAddonsBossLevelSetting cannot be reverted.\n";
- return false;
- }
- */
- }
|