| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- namespace app\migrations;
- use yii\db\Migration;
- /**
- *
- * Class M221021021653AlterQimallUserTeamStatistics
- */
- class M221108154153AlterQimallUserTeamStatistics extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = "ALTER TABLE `qimall_user_team_statistics`";
- $sql.= "ADD COLUMN `team_finish_order_total` int(10) NULL DEFAULT 0 COMMENT '团队完成订单数量(不包括本人)',";
- $sql.= "ADD COLUMN `team_finish_order_price_total` decimal(12,2) NULL DEFAULT 0.00 COMMENT '团队完成订单金额(不包括本人)';";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M221108154153AlterQimallUserTeamStatistics cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M221021021653AlterQimallUserTeamStatistics cannot be reverted.\n";
- return false;
- }
- */
- }
|