| 123456789101112131415161718192021222324252627282930313233 |
- <?php
- namespace addons\Coupon\console\migrations;
- use yii\db\Migration;
- /**
- * Handles adding columns to table `{{%coupon}}`.
- */
- class M250312150617AlertAddonsCoupon extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = <<<SQL
- ALTER TABLE `qimall_addons_coupon`
- ADD COLUMN `applet_code` varchar(255) DEFAULT '' COMMENT '小程序二维码图片地址';
- SQL;
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- return false;
- }
- }
|