| 123456789101112131415161718192021222324252627282930313233 |
- <?php
- namespace addons\Store\console\migrations;
- use yii\db\Migration;
- /**
- * Class M240516174423AddPickupToStore
- */
- class M240516174423AddPickupToStore extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = <<<SQL
- ALTER TABLE `qimall_addons_store` ADD COLUMN `pickup` longtext NULL COMMENT '自提设置';
- SQL;
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M240516174423AddPickupToStore cannot be reverted.\n";
- return false;
- }
- }
|