| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- namespace addons\Store\console\migrations;
- use addons\Store\common\services\StoreFinanceService;
- use common\enums\RabbitMqEnum;
- use yii\db\Migration;
- /**
- * Class M250714175436AlterQimallAddonsStoreSupplier
- */
- class M250714175436AlterQimallAddonsStoreSupplier extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = "update `qimall_addons_store_goods` set supplier_id = store_id where status = 1;";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M250714175436AlterQimallAddonsStoreSupplier cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M250703072236AlterQimallAddonsStoreCensus cannot be reverted.\n";
- return false;
- }
- */
- }
|