Skip to content

Commit

Permalink
bump version to v0.16
Browse files Browse the repository at this point in the history
  • Loading branch information
proditis committed Mar 20, 2021
1 parent 160769e commit 095106b
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions backend/migrations/m210320_190011_version_bump_v0_16.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 m210320_190011_version_bump_v0_16
*/
class m210320_190011_version_bump_v0_16 extends Migration
{
public function safeUp()
{
$this->db->createCommand("INSERT INTO sysconfig (id,val) values ('platform_version','v0.16') ON DUPLICATE KEY UPDATE val=values(val)")->execute();
$this->update('sysconfig', ['val'=>new Expression('REPLACE(val,"v0.15","v0.16")')], ['id' => 'frontpage_scenario']);
}

/**
* {@inheritdoc}
*/
public function safeDown()
{
$this->db->createCommand("INSERT INTO sysconfig (id,val) values ('platform_version','v0.15') ON DUPLICATE KEY UPDATE val=values(val)")->execute();
$this->update('sysconfig', ['val'=>new Expression('REPLACE(val,"v0.16","v0.15")')], ['id' => 'frontpage_scenario']);
}
}

0 comments on commit 095106b

Please sign in to comment.