Skip to content

Commit

Permalink
Dev: Don't hardcode dbversion in create-database.php
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Dec 1, 2017
1 parent 29ffe4a commit 87aca2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion application/config/version.php
Expand Up @@ -14,7 +14,7 @@

$config['versionnumber'] = '3.0.0-RC.3'; //The current version of this branch
$config['masterversion'] = '2.67.3'; //The current masters version merged into this branch
$config['dbversionnumber'] = 331;
$config['dbversionnumber'] = 329;
$config['buildnumber'] = '';
$config['updatable'] = true;
$config['assetsversionnumber'] = '3018';
Expand Down
3 changes: 2 additions & 1 deletion installer/create-database.php
Expand Up @@ -11,7 +11,8 @@ function createDatabase($oDB){
*/

////// Current database version: //////
$databaseCurrentVersion = "329";
$version = require(\Yii::app()->getBasePath() . '/config/version.php');
$databaseCurrentVersion = $version['dbversionnumber'];
///////////////////////////////////////

Yii::app()->loadHelper('database');
Expand Down

0 comments on commit 87aca2e

Please sign in to comment.