| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- namespace addons\BossWeight\console\migrations;
- use yii\db\Migration;
- /**
- * Class M250812094337AlertQimallAddonsBossWeightLevelSetting
- */
- class M250812094337AlertQimallAddonsBossWeightLevelSetting extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = "ALTER TABLE `qimall_addons_boss_weight_level_setting`
- ADD COLUMN `weight_member_num_team` decimal(10, 2) NULL DEFAULT 0 COMMENT '伞下团队每有一个市场业绩',
- ADD COLUMN `weight_num_team` int(11) NULL DEFAULT 0 COMMENT '市场业绩达标,获得权重数量'";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M250812094337AlertQimallAddonsBossWeightLevelSetting cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M250812094337AlertQimallAddonsBossWeightLevelSetting cannot be reverted.\n";
- return false;
- }
- */
- }
|