From 095106b2bc5b769cea16263bbb1fa4c0c7e943e9 Mon Sep 17 00:00:00 2001 From: Pantelis Roditis Date: Sat, 20 Mar 2021 21:02:18 +0200 Subject: [PATCH] bump version to v0.16 --- .../m210320_190011_version_bump_v0_16.php | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 backend/migrations/m210320_190011_version_bump_v0_16.php diff --git a/backend/migrations/m210320_190011_version_bump_v0_16.php b/backend/migrations/m210320_190011_version_bump_v0_16.php new file mode 100644 index 000000000..187875f05 --- /dev/null +++ b/backend/migrations/m210320_190011_version_bump_v0_16.php @@ -0,0 +1,25 @@ +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']); + } +}