Added a course field (whoops!) and edited backuplib.php and restorelib.php
This commit is contained in:
@@ -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,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',
|
||||
|
||||
@@ -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,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'
|
||||
|
||||
@@ -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)
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user