Skip to content

Commit

Permalink
Fixed issue #7137: Problem upgrading from 1.92 to 2.00+ using SQL Server
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Jan 5, 2013
1 parent 59a8b39 commit a35322d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/helpers/update/updatedb_helper.php
Expand Up @@ -776,7 +776,6 @@ function db_upgrade_all($oldversion) {
}

addPrimaryKey('sessions', array('id'));

addColumn('{{surveys_languagesettings}}','surveyls_attributecaptions',"TEXT");
addColumn('{{surveys}}','sendconfirmation',"{$sVarchar}(1) default 'Y'");

Expand All @@ -795,6 +794,8 @@ function db_upgrade_all($oldversion) {
}
}
Yii::app()->db->createCommand()->update('{{settings_global}}',array('stg_value'=>156),"stg_name='DBVersion'");
$oTransaction->commit();
$oTransaction=Yii::app()->db->beginTransaction();
}

if ($oldversion < 157)
Expand Down

0 comments on commit a35322d

Please sign in to comment.