Skip to content

Commit

Permalink
SQL Schema upgrade trigger added.
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-unwin committed Jun 21, 2019
1 parent f774d63 commit b7d830e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions code_igniter/application/controllers/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,11 @@ public function update()
include "db_upgrades/db_3.1.0.php";
}

if (($db_internal_version < '20190620') and ($this->db->platform() == 'mysql' or $this->db->platform() == 'mysqli')) {
# upgrade for 3.1.1
include "db_upgrades/db_3.1.1.php";
}

$this->data['include'] = 'v_database_update';
$this->data['heading'] = 'Database Upgrade';
$this->data['success'] = "Database upgraded successfully. New database version is ".$this->config->config['display_version']." (".$this->config->config['internal_version'].")";
Expand Down

0 comments on commit b7d830e

Please sign in to comment.