Skip to content

Commit

Permalink
Fixed issue #8519: Error during upgrade vom 2.00 to 2.05 using Postgr…
Browse files Browse the repository at this point in the history
…eSQL
  • Loading branch information
c-schmitz committed Jan 22, 2014
1 parent 58b6d95 commit 0abd4ae
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion application/config/version.php
Expand Up @@ -13,7 +13,7 @@
*/

$config['versionnumber'] = "2.05+";
$config['dbversionnumber'] = 174;
$config['dbversionnumber'] = 175;
$config['buildnumber'] = '';
$config['updatable'] = true;

Expand Down
5 changes: 5 additions & 0 deletions application/helpers/update/updatedb_helper.php
Expand Up @@ -1185,6 +1185,11 @@ function db_upgrade_all($iOldDBVersion) {
alterColumn('{{users}}', 'email', "{$sVarchar}(254)");
$oDB->createCommand()->update('{{settings_global}}',array('stg_value'=>174),"stg_name='DBVersion'");
}
if ($iOldDBVersion < 175)
{
alterColumn('{{plugins}}', 'active', "integer",false,'0');
$oDB->createCommand()->update('{{settings_global}}',array('stg_value'=>175),"stg_name='DBVersion'");
}


$oTransaction->commit();
Expand Down
2 changes: 1 addition & 1 deletion installer/sql/create-mssql.sql
Expand Up @@ -577,4 +577,4 @@ create index [parent_qid_idx] on [prefix_questions] ([parent_qid]);
--
-- Version Info
--
INSERT INTO [prefix_settings_global] VALUES ('DBVersion', '174');
INSERT INTO [prefix_settings_global] VALUES ('DBVersion', '175');
2 changes: 1 addition & 1 deletion installer/sql/create-mysql.sql
Expand Up @@ -582,4 +582,4 @@ create index `parent_qid_idx` on `prefix_questions` (`parent_qid`);
--
-- Version Info
--
INSERT INTO `prefix_settings_global` VALUES ('DBVersion', '174');
INSERT INTO `prefix_settings_global` VALUES ('DBVersion', '175');
2 changes: 1 addition & 1 deletion installer/sql/create-pgsql.sql
Expand Up @@ -588,4 +588,4 @@ create unique index permissions_idx2 ON prefix_permissions (entity_id, entity, u
--
-- Version Info
--
INSERT INTO prefix_settings_global VALUES ('DBVersion', '174');
INSERT INTO prefix_settings_global VALUES ('DBVersion', '175');

0 comments on commit 0abd4ae

Please sign in to comment.