From 7ad25bc64c6e70e5052c43f46673cf53350efe64 Mon Sep 17 00:00:00 2001 From: Mark Unwin Date: Mon, 14 Jun 2021 10:16:22 +1000 Subject: [PATCH] Syntax error in 4.1.2 upgrade fixed. --- code_igniter/application/controllers/db_upgrades/db_4.1.2.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code_igniter/application/controllers/db_upgrades/db_4.1.2.php b/code_igniter/application/controllers/db_upgrades/db_4.1.2.php index fe53d0729..551bef084 100644 --- a/code_igniter/application/controllers/db_upgrades/db_4.1.2.php +++ b/code_igniter/application/controllers/db_upgrades/db_4.1.2.php @@ -46,13 +46,13 @@ if ($this->db->field_exists('cloud_id', 'discoveries')) { $this->alter_table('discoveries', 'cloud_id', "DROP `cloud_id`", 'drop'); } -$this->alter_table('discoveries', 'cloud_id', "cloud_id int(10) unsigned NOT NULL DEFAULT '1' AFTER ip_audited_count", 'add'); +$this->alter_table('discoveries', 'cloud_id', "ADD cloud_id int(10) unsigned NOT NULL DEFAULT '1' AFTER ip_audited_count", 'add'); if ($this->db->field_exists('cloud_name', 'discoveries')) { $this->alter_table('discoveries', 'cloud_name', "DROP `cloud_name`", 'drop'); } -$this->alter_table('discoveries', 'cloud_name', "cloud_name varchar(200) NOT NULL DEFAULT '' AFTER cloud_id", 'add'); +$this->alter_table('discoveries', 'cloud_name', "ADD cloud_name varchar(200) NOT NULL DEFAULT '' AFTER cloud_id", 'add'); // set our versions $sql = "UPDATE `configuration` SET `value` = '20210620' WHERE `name` = 'internal_version'";