| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- namespace addons\Boss\console\migrations;
- use yii\db\Migration;
- /**
- * Class M250422093741AlterBossTable
- */
- class M250422093741AlterBossTable extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = <<<SQL
- ALTER TABLE `qimall_addons_boss`
- ADD COLUMN `is_extra_bonus_alone_limit` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否开启额外分红独立限额',
- ADD COLUMN `extra_bonus_limit` decimal(12, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '额外分红独立限额';
- SQL;
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M250422093741AlterBossTable cannot be reverted.\n";
- return false;
- }
- */
- }
|