Skip to content

Commit

Permalink
bump the version to v0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
proditis committed Sep 14, 2020
1 parent e924de2 commit 270ff8e
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions backend/migrations/m200912_221826_version_bump_v0_13.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

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

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

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

0 comments on commit 270ff8e

Please sign in to comment.