| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- namespace app\migrations;
- use yii\db\Migration;
- /**
- * Class M240914091337AddRefundFeeToPaymentTrade
- */
- class M240914091337AddRefundFeeToPaymentTrade extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $this->execute("ALTER TABLE `qimall_payment_trade` ADD COLUMN `refund_fee` decimal(10, 2) NOT NULL default 0 COMMENT '退款金额' ;");
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M240914091337AddRefundFeeToPaymentTrade cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M240914091337AddRefundFeeToPaymentTrade cannot be reverted.\n";
- return false;
- }
- */
- }
|