| 1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- namespace addons\YunfastPay\console\migrations;
- use yii\db\Migration;
- /**
- * Class M231024114312AddNotifyToAgentOrder
- */
- class M231024114312AddNotifyToAgentOrder extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- try {
- // 插入表数据
- $sql = "ALTER TABLE `qimall_addons_yunfast_pay_agent_order`
- ADD COLUMN `notify_data` longtext NULL COMMENT '回调参数' AFTER `res_data`;";
- $this->execute($sql);
- } catch (\Exception $e) {
- }
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M231024114312AddNotifyToAgentOrder cannot be reverted.\n";
- return false;
- }
- }
|