| 1234567891011121314151617181920212223242526272829303132 |
- <?php
- namespace addons\YunfastPay\console\migrations;
- use yii\db\Migration;
- /**
- * Handles adding columns to table `{{%yunfast_pay_refund_order}}`.
- */
- class M250213034650AddRefundSourceColumnToYunfastPayRefundOrderTable extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = <<<SQL
- ALTER TABLE `qimall_addons_yunfast_pay_refund_order`
- ADD COLUMN `refund_source` varchar(50) NOT NULL DEFAULT 'order' COMMENT '退款订单来源';
- SQL;
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- }
- }
|