| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- namespace addons\Boss\console\migrations;
- use yii\db\Migration;
- /**
- * Class M220914072619AlterQimallAddonsBossLevelSetting
- */
- class M220914072619AlterQimallAddonsBossLevelSetting extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = "ALTER TABLE `qimall_addons_boss_level_setting` ";
- $sql .= "ADD COLUMN `extra_restrict` tinyint(4) NULL DEFAULT 0 COMMENT '股东额外分红限制【0=否,1=是】',";
- $sql .= "ADD COLUMN `extra_restrict_keys` varchar(255) NULL DEFAULT '' COMMENT '被选中的额外分红限制条件key集合',";
- $sql .= "ADD COLUMN `extra_restrict_values` text NULL COMMENT '额外分红限制条件的值集合',";
- $sql .= "ADD COLUMN `extra_alone` tinyint(4) NULL DEFAULT 0 COMMENT '股东分红单独分【0=否,1=是】';";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M220914072619AlterQimallAddonsBossLevelSetting cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M220914072619AlterQimallAddonsBossLevelSetting cannot be reverted.\n";
- return false;
- }
- */
- }
|