Skip to content

Commit

Permalink
Dev: small fix for intermediate databses
Browse files Browse the repository at this point in the history
  • Loading branch information
lacrioque committed Jan 22, 2018
1 parent e19c235 commit 1635ee3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions application/helpers/update/updatedb_helper.php
Expand Up @@ -224,6 +224,10 @@ function db_upgrade_all($iOldDBVersion, $bSilent = false)
if (!in_array('lastpage', $oTableSchema->columnNames)) {
continue;
}
//If seed already exists, due to whatsoever
if (in_array('seed', $oTableSchema->columnNames)) {
continue;
}
// If survey has active table, create seed column
Yii::app()->db->createCommand()->addColumn($sTableName, 'seed', 'string(31)');

Expand Down

0 comments on commit 1635ee3

Please sign in to comment.