| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- namespace app\migrations;
- use yii\db\Migration;
- /**
- * Class M241108091651UpdateQimallAddonsSetting
- */
- class M241108091651UpdateQimallAddonsSetting extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- try {
- $sql = <<<SQL
- UPDATE `qimall_addons_setting` SET `group` = 'scoreGive' WHERE `addons_name` = 'Store' AND `name` IN ('score_give_setting', 'score_give_is_store_alone');
- SQL;
- $this->execute($sql);
- }catch (\Exception $exception){}
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M241108091651UpdateQimallAddonsSetting cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M241108091651UpdateQimallAddonsSetting cannot be reverted.\n";
- return false;
- }
- */
- }
|