Skip to content

Commit

Permalink
Fixed issue: Error message after update due to schema caching issues
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Oct 18, 2017
1 parent 92701ab commit 4f808b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/helpers/update/updatedb_helper.php
Expand Up @@ -530,6 +530,8 @@ function db_upgrade_all($iOldDBVersion, $bSilent=false) {
return false;
}

// Activate schema cache first - otherwise it won't be refreshed!
$oDB->schemaCachingDuration=3600;
// Load all tables of the application in the schema
$oDB->schema->getTables();

Expand All @@ -540,7 +542,6 @@ function db_upgrade_all($iOldDBVersion, $bSilent=false) {

// Force User model to refresh meta data (for updates from very old versions)
User::model()->refreshMetaData();
Survey::model()->refreshMetaData();

// Inform superadmin about update
$superadmins = User::model()->getSuperAdmins();
Expand Down

0 comments on commit 4f808b9

Please sign in to comment.