| 12345678910111213141516171819202122232425262728293031323334 |
- <?php
- namespace addons\Store\console\migrations;
- use yii\db\Migration;
- /**
- * Class M250108104255AddMallAttrIdToStoreGoodsAttr
- */
- class M250324140855AddAddonsStoreLimitDistance extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = <<<SQL
- ALTER TABLE `qimall_addons_store` ADD COLUMN `limit_distance` decimal(12,2) NOT NULL DEFAULT '0.00' COMMENT '匹配距离限制';
- SQL;
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M250324140855AddAddonsStoreLimitDistance cannot be reverted.\n";
- return false;
- }
- }
|