From c9b1af4d424da5614b5d7b0dc3fab120bd6ff183 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 16 Feb 2004 16:15:21 +0000 Subject: [PATCH] Make sure the update happens (some of this new code is actually really old and sort of got bypassed) --- mod/survey/db/mysql.php | 2 +- mod/survey/db/postgres7.php | 2 +- mod/survey/version.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/survey/db/mysql.php b/mod/survey/db/mysql.php index 48df9e725d..8d940bc2ec 100644 --- a/mod/survey/db/mysql.php +++ b/mod/survey/db/mysql.php @@ -158,7 +158,7 @@ function survey_upgrade($oldversion) { execute_sql("ALTER TABLE `survey_answers` CHANGE `user` `userid` INT(10) UNSIGNED DEFAULT '0' NOT NULL "); } - if ($oldversion < 2003051502) { + if ($oldversion < 2004021601) { execute_sql("INSERT INTO `{$CFG->prefix}survey` (`id`, `course`, `template`, `days`, `timecreated`, `timemodified`, `name`, `intro`, `questions`) VALUES (5, 0, 0, 0, 985017600, 985017600, 'ciqname', 'ciqintro', '69,70,71,72,73')"); execute_sql("INSERT INTO `{$CFG->prefix}survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (69, 'ciq1', 'ciq1short', '', '', 0, '')"); execute_sql("INSERT INTO `{$CFG->prefix}survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (70, 'ciq2', 'ciq2short', '', '', 0, '')"); diff --git a/mod/survey/db/postgres7.php b/mod/survey/db/postgres7.php index eaab3078e1..a9f302af0c 100644 --- a/mod/survey/db/postgres7.php +++ b/mod/survey/db/postgres7.php @@ -6,7 +6,7 @@ function survey_upgrade($oldversion) { global $CFG; - if ($oldversion < 2003051501) { + if ($oldversion < 2004021601) { modify_database("", "INSERT INTO `prefix_survey` (`id`, `course`, `template`, `days`, `timecreated`, `timemodified`, `name`, `intro`, `questions`) VALUES (5, 0, 0, 0, 985017600, 985017600, 'ciqname', 'ciqintro', '69,70,71,72,73')"); modify_database("", "INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (69, 'ciq1', 'ciq1short', '', '', 0, '')"); modify_database("", "INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (70, 'ciq2', 'ciq2short', '', '', 0, '')"); diff --git a/mod/survey/version.php b/mod/survey/version.php index 5e80d3b154..4686ffb0c9 100644 --- a/mod/survey/version.php +++ b/mod/survey/version.php @@ -5,7 +5,7 @@ // This fragment is called by /admin/index.php //////////////////////////////////////////////////////////////////////////////// -$module->version = 2004021600; +$module->version = 2004021601; $module->requires = 2004013101; // Requires this Moodle version $module->cron = 0; -- 2.39.5