modify_database("", "INSERT INTO prefix_log_display VALUES ('choice', 'choose', 'choice', 'name');");
modify_database("", "INSERT INTO prefix_log_display VALUES ('choice', 'choose again', 'choice', 'name');");
}
+ if ($oldversion < 2004070100) {
+ table_column("choice", "", "timeclose", "integer", "10", "unsigned", "0", "", "showunanswered");
+ table_column("choice", "", "timeopen", "integer", "10", "unsigned", "0", "", "showunanswered");
+ }
+
return true;
}
answer6 varchar(255) default NULL,\r
publish tinyint(2) unsigned NOT NULL default '0',\r
showunanswered tinyint(2) unsigned NOT NULL default '0',\r
+ timeopen int(10) unsigned NOT NULL default '0',\r
+ timeclose int(10) unsigned NOT NULL default '0',\r
timemodified int(10) unsigned NOT NULL default '0',\r
PRIMARY KEY (id),\r
UNIQUE KEY id (id)\r
modify_database("", "INSERT INTO prefix_log_display VALUES ('choice', 'choose', 'choice', 'name');");
modify_database("", "INSERT INTO prefix_log_display VALUES ('choice', 'choose again', 'choice', 'name');");
}
+ if ($oldversion < 2004070100) {
+ table_column("choice", "", "timeclose", "integer", "10", "unsigned", "0", "", "showunanswered");
+ table_column("choice", "", "timeopen", "integer", "10", "unsigned", "0", "", "showunanswered");
+ }
return true;
}
answer6 varchar(255) default NULL,
showunanswered integer NOT NULL default '0',
publish integer NOT NULL default '0',
+ timeopen integer NOT NULL default '0',
+ timeclose integer NOT NULL default '0',
timemodified integer NOT NULL default '0'
);
// This fragment is called by /admin/index.php
////////////////////////////////////////////////////////////////////////////////
-$module->version = 2004060400;
+$module->version = 2004070100;
$module->requires = 2004052501; // Requires this Moodle version
$module->cron = 0;