Skip to content

Commit

Permalink
Dev: Test another way to refresh schema after update
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Dec 29, 2017
1 parent 66dda8c commit bf3d1fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions application/helpers/update/updatedb_helper.php
Expand Up @@ -861,6 +861,7 @@ function db_upgrade_all($iOldDBVersion, $bSilent = false)
$oDB->schema->refresh();
$oDB->active = false;
$oDB->active = true;
Yii::app()->db->schema->refresh();

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

0 comments on commit bf3d1fe

Please sign in to comment.