Skip to content

Commit

Permalink
Fixed issue #15829: Unable to upgrade from 3.x to 4x when using MSSQL
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Mar 4, 2020
1 parent d1ebce2 commit 4bd9487
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions application/helpers/update/updatedb_helper.php
Expand Up @@ -2955,11 +2955,9 @@ function db_upgrade_all($iOldDBVersion, $bSilent = false)
$oDB->createCommand()->createIndex('{{idx1_question_themes}}', '{{question_themes}}', 'name', false);

$baseQuestionThemeEntries = LsDefaultDataSets::getBaseQuestionThemeEntries();
switchMSSQLIdentityInsert('question_themes', true);
foreach ($baseQuestionThemeEntries as $baseQuestionThemeEntry) {
$oDB->createCommand()->insert("{{question_themes}}", $baseQuestionThemeEntry);
}
switchMSSQLIdentityInsert('question_themes', false);

$oDB->createCommand()->update('{{settings_global}}',array('stg_value'=>421),"stg_name='DBVersion'");
$oTransaction->commit();
Expand Down

0 comments on commit 4bd9487

Please sign in to comment.