| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- namespace addons\Redpack\console\migrations;
- use yii\db\Migration;
- /**
- * Class M240124093341UpdateQimallAddonsRedpackInvite
- */
- class M240124093341UpdateQimallAddonsRedpackInvite extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql='update qimall_addons_redpack_invite set `status` = -1 where user_id=parent_id';
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M240124093341UpdateQimallAddonsRedpackInvite cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M240124093341UpdateQimallAddonsRedpackInvite cannot be reverted.\n";
- return false;
- }
- */
- }
|