| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- namespace addons\YunfastPay\console\migrations;
- use yii\db\Migration;
- /**
- * Class M2304121843AddColumnMerchantSettings
- */
- class M2304121843AddColumnMerchantSettings extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- try {
- // 插入表数据
- $sql = "
- ALTER TABLE `qimall_addons_store_settings`
- ADD COLUMN `merchant_settings` longtext NULL COMMENT '商户号设置' AFTER `cashier_distribution_is_enable_score`;
- ";
- $this->execute($sql);
- } catch (\Exception $e) {
- }
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M2304121843AddColumnMerchantSettings cannot be reverted.\n";
- return false;
- }
- }
|