Added a course field (whoops!) and edited backuplib.php and restorelib.php

This commit is contained in:
moodler
2003-09-14 15:20:09 +00:00
parent 2c5c3e62a7
commit a90fb36bd2
5 changed files with 11 additions and 1 deletions
+4
View File
@@ -6,6 +6,10 @@ function label_upgrade($oldversion) {
global $CFG;
if ($oldversion < 2003091400) {
table_column("label", "", "course", "integer", "10", "unsigned", "0", "not null", "id");
}
return true;
}
+1
View File
@@ -1,5 +1,6 @@
CREATE TABLE `prefix_label` (
`id` int(10) unsigned NOT NULL auto_increment,
`course` int(10) unsigned NOT NULL default '0',
`name` varchar(255) NOT NULL default '',
`content` text NOT NULL,
`timemodified` int(10) unsigned NOT NULL default '0',
+4
View File
@@ -6,6 +6,10 @@ function label_upgrade($oldversion) {
global $CFG;
if ($oldversion < 2003091400) {
table_column("label", "", "course", "integer", "10", "unsigned", "0", "not null", "id");
}
return true;
}
+1
View File
@@ -1,5 +1,6 @@
CREATE TABLE prefix_label (
id SERIAL PRIMARY KEY,
course integer NOT NULL default '0',
name varchar(255) default NULL,
content text,
timemodified integer NOT NULL default '0'
+1 -1
View File
@@ -5,7 +5,7 @@
/// This fragment is called by moodle_needs_upgrading() and /admin/index.php
/////////////////////////////////////////////////////////////////////////////////
$module->version = 2003091300; // The current module version (Date: YYYYMMDDXX)
$module->version = 2003091400; // The current module version (Date: YYYYMMDDXX)
$module->cron = 0; // Period for cron to check this module (secs)
?>