| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- namespace addons\Boss\console\migrations;
- use yii\db\Migration;
- /**
- * Class M250618020703InsertQimallAddonsBossLevelSetting
- */
- class M250618020703InsertQimallAddonsBossLevelSetting extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = "ALTER TABLE `qimall_addons_boss_level_setting`
- ADD COLUMN `is_static_extra` tinyint UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否计算已满上限(1:计算,2:不计算)';";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M250618020703InsertQimallAddonsBossLevelSetting cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M250618020703InsertQimallAddonsBossLevelSetting cannot be reverted.\n";
- return false;
- }
- */
- }
|