Skip to content

Commit

Permalink
Fixed issue: If question attributes were set to invalid (but working)…
Browse files Browse the repository at this point in the history
… True/False values they will be converted to 1/0 now on upgrade from a 1.86 or earlier.

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@8240 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Jan 11, 2010
1 parent a50eed8 commit 2e2b97b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/update/upgrade-mysql.php
Expand Up @@ -340,8 +340,8 @@ function db_upgrade($oldversion) {
{
modify_database("","ALTER TABLE `prefix_surveys` CHANGE `expires` `expires` datetime"); echo $modifyoutput; flush();
modify_database("","ALTER TABLE `prefix_surveys` CHANGE `startdate` `startdate` datetime"); echo $modifyoutput; flush();
modify_database("", "UPDATE `prefix_question_attributes` SET `value`='0' WHERE value='false'"); echo $modifyoutput; flush();
modify_database("", "UPDATE `prefix_question_attributes` SET `value`='1' WHERE value='true'"); echo $modifyoutput; flush();
modify_database("", "UPDATE `prefix_question_attributes` SET `value`='0' WHERE `value`='false'"); echo $modifyoutput; flush();
modify_database("", "UPDATE `prefix_question_attributes` SET `value`='1' WHERE `value`='true'"); echo $modifyoutput; flush();
modify_database("", "UPDATE `prefix_settings_global` SET `stg_value`='142' WHERE stg_name='DBVersion'"); echo $modifyoutput; flush();
}

Expand Down

0 comments on commit 2e2b97b

Please sign in to comment.