| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- namespace addons\Boss\console\migrations;
- use yii\db\Migration;
- /**
- * Class M230703091310QimallAddonsBoss
- */
- class M230703091310QimallAddonsBoss extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = "ALTER TABLE `qimall_addons_boss` ";
- $sql .= "ADD COLUMN `performance` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '累计团队营业额,单位:元',";
- $sql .= "ADD COLUMN `performance_commission` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '业绩佣金(额外佣金2)';";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M230703091310QimallAddonsBoss cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M230703091310QimallAddonsBoss cannot be reverted.\n";
- return false;
- }
- */
- }
|