From cb5f4133014eaba2f08ef1c9f2e78800a6561281 Mon Sep 17 00:00:00 2001 From: michu2k Date: Wed, 19 Feb 2020 20:20:39 +0100 Subject: [PATCH] Added new version to upgrade.php --- upgrade.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/upgrade.php b/upgrade.php index 07061ec..47237c2 100644 --- a/upgrade.php +++ b/upgrade.php @@ -81,7 +81,7 @@ switch ($version) { case '1.0.4': $return = '1.0.4a'; - + case '1.0.4a': $this->core->db()->pdo()->exec("ALTER TABLE modules ADD COLUMN sequence INTEGER DEFAULT 0"); $this->rcopy(BASE_DIR.'/tmp/update/admin', BASE_DIR.'/admin'); @@ -97,7 +97,7 @@ switch ($version) { $this->rcopy(BASE_DIR.'/tmp/update/themes/admin', BASE_DIR.'/themes/admin'); } $return = '1.1.0'; - + case '1.1.0': $this->core->db()->pdo()->exec('CREATE TABLE "blog_tags" ( `id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, @@ -118,7 +118,7 @@ switch ($version) { ('contact', 'phpmailer.username', 'login@example.com'), ('contact', 'phpmailer.name', 'Batflat contact'), ('contact', 'phpmailer.password', 'yourpassword')"); - + $this->rcopy(BASE_DIR.'/tmp/update/inc/core', BASE_DIR.'/inc/core'); $this->rcopy(BASE_DIR.'/tmp/update/themes/admin', BASE_DIR.'/themes/admin'); $this->rcopy(BASE_DIR.'/tmp/update/admin', BASE_DIR.'/admin'); @@ -177,7 +177,7 @@ switch ($version) { $this->core->db('snippets')->where('id', $snippet['id'])->save(['content' => '{lang: '.$lang.'}'.$snippet['content'].'{/lang}']); } $return = '1.3.0'; - + case '1.3.0': $this->core->db()->pdo()->exec("ALTER TABLE navs_items ADD COLUMN class TEXT NULL"); $return = '1.3.1'; @@ -203,12 +203,15 @@ switch ($version) { $this->rcopy(BASE_DIR.'/tmp/update/admin', BASE_DIR.'/admin'); $this->rcopy(BASE_DIR.'/tmp/update/themes/admin', BASE_DIR.'/themes/admin'); $return = '1.3.4'; - + case '1.3.4': $this->rcopy(BASE_DIR.'/tmp/update/themes/admin/css', BASE_DIR.'/themes/admin/css'); $this->core->db()->pdo()->exec("INSERT INTO `settings` (`module`, `field`, `value`) VALUES ('contact', 'checkbox.switch', '0')"); $this->core->db()->pdo()->exec("INSERT INTO `settings` (`module`, `field`, `value`) VALUES ('contact', 'checkbox.content', 'I agree to the processing of personal data...')"); $return = '1.3.5'; + + case '1.3.5': + $return = '1.3.6'; } -return $return; +return $return; \ No newline at end of file