Skip to content

Commit

Permalink
bump version migration
Browse files Browse the repository at this point in the history
  • Loading branch information
proditis committed Nov 8, 2021
1 parent a4e06a6 commit d4f607f
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions backend/migrations/m211108_105742_version_bump_v0_18.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

use yii\db\Migration;
use yii\db\Expression;

/**
* Class m211108_105742_version_bump_v0_18
*/
class m211108_105742_version_bump_v0_18 extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->update('sysconfig', ['val'=>'v0.18'], ['id'=>'platform_version']);
$this->update('sysconfig', ['val'=>new Expression('REPLACE(val,"v0.17","v0.18")')], ['id' => 'frontpage_scenario']);
}

/**
* {@inheritdoc}
*/
public function safeDown()
{
$this->update('sysconfig', ['val'=>'v0.17'], ['id'=>'platform_version']);
$this->update('sysconfig', ['val'=>new Expression('REPLACE(val,"v0.18","v0.17")')], ['id' => 'frontpage_scenario']);
}

}

0 comments on commit d4f607f

Please sign in to comment.