-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
35f821d
commit 8761e04
Showing
4 changed files
with
59 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
code_igniter/application/controllers/db_upgrades/db_4.3.2.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php | ||
/** | ||
# Copyright 2003-2015 Opmantek Limited (www.opmantek.com) | ||
# | ||
# ALL CODE MODIFICATIONS MUST BE SENT TO [email protected] | ||
# | ||
# This file is part of Open-AudIT. | ||
# | ||
# Open-AudIT is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU Affero General Public License as published | ||
# by the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# Open-AudIT is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU Affero General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Affero General Public License | ||
# along with Open-AudIT (most likely in a file named LICENSE). | ||
# If not, see <http://www.gnu.org/licenses/> | ||
# | ||
# For further information on Open-AudIT or for a license other than AGPL please see | ||
# www.opmantek.com or email [email protected] | ||
# | ||
# ***************************************************************************** | ||
* | ||
**/ | ||
|
||
/* | ||
UPDATE `configuration` SET `value` = '20220126' WHERE `name` = 'internal_version'; | ||
UPDATE `configuration` SET `value` = '4.3.2' WHERE `name` = 'display_version'; | ||
*/ | ||
|
||
$this->log_db('Upgrade database to 4.3.2 commenced'); | ||
|
||
// set our versions | ||
$sql = "UPDATE `configuration` SET `value` = '20220126' WHERE `name` = 'internal_version'"; | ||
$this->db->query($sql); | ||
$this->log_db($this->db->last_query() . ';'); | ||
|
||
$sql = "UPDATE `configuration` SET `value` = '4.3.2' WHERE `name` = 'display_version'"; | ||
$this->db->query($sql); | ||
$this->log_db($this->db->last_query() . ';'); | ||
|
||
$this->log_db('Upgrade database to 4.3.2 completed'); | ||
$this->config->config['internal_version'] = '20220126'; | ||
$this->config->config['display_version'] = '4.3.2'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters