Skip to content

Commit

Permalink
Syntax error in 4.1.2 upgrade fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-unwin committed Jun 14, 2021
1 parent b5e7472 commit 7ad25bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code_igniter/application/controllers/db_upgrades/db_4.1.2.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'";
Expand Down

0 comments on commit 7ad25bc

Please sign in to comment.