Skip to content

Commit

Permalink
dev: change db version number to according to cloud edition
Browse files Browse the repository at this point in the history
  • Loading branch information
Trischi80 committed Dec 20, 2021
1 parent c194b65 commit d59f8af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion application/config/version.php
Expand Up @@ -12,7 +12,7 @@
*/

$config['versionnumber'] = '5.2.6';
$config['dbversionnumber'] = 477;
$config['dbversionnumber'] = 478;
$config['buildnumber'] = '';
$config['updatable'] = true;
$config['templateapiversion'] = 3;
Expand Down
6 changes: 6 additions & 0 deletions application/helpers/update/updatedb_helper.php
Expand Up @@ -5030,6 +5030,12 @@ function ($v) {
$oDB->createCommand()->update('{{settings_global}}', ['stg_value' => 477], "stg_name='DBVersion'");
$oTransaction->commit();
}
if ($iOldDBVersion < 478) {
$oTransaction = $oDB->beginTransaction();

$oDB->createCommand()->update('{{settings_global}}', ['stg_value' => 478], "stg_name='DBVersion'");
$oTransaction->commit();
}
} catch (Exception $e) {
Yii::app()->setConfig('Updating', false);
$oTransaction->rollback();
Expand Down

0 comments on commit d59f8af

Please sign in to comment.