| 1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- namespace addons\Store\console\migrations;
- use yii\db\Migration;
- /**
- * 修改门店商品库存 有效距离和主商城相同
- * Class M250225103456AlertStoreGoodsReserve
- */
- class M250331141245CleanStoreMIniCode extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = <<<SQL
- UPDATE qimall_addons_store_mini_code SET status = '-1' where type = 1;
- SQL;
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M250331141245CleanStoreMIniCode cannot be reverted.\n";
- return false;
- }
-
- }
|