| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- namespace app\migrations;
- use yii\db\Migration;
- /**
- * Class M250605075323AlterQimallUserStatisticsTotal
- */
- class M250605075323AlterQimallUserStatisticsTotal extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = "ALTER TABLE `qimall_user_statistics_total`
- ADD COLUMN `refund_finish_order_num` int(11) NOT NULL DEFAULT 0 ,
- ADD COLUMN `refund_finish_order_money` decimal(14, 2) NOT NULL DEFAULT 0.00;";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M250605075323AlterQimallUserStatisticsTotal cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M250605075323AlterQimallUserStatisticsTotal cannot be reverted.\n";
- return false;
- }
- */
- }
|