Added field for CSS for database templates

This commit is contained in:
moodler 2006-03-29 17:42:42 +00:00
parent 3387cc5c3f
commit 20e294eeda
5 changed files with 16 additions and 6 deletions

View File

@ -44,6 +44,10 @@ function data_upgrade($oldversion) {
table_column('data', '', 'defaultsortdir', 'tinyint', '4', 'unsigned', '0', 'not null', 'defaultsort');
table_column('data', '', 'editany', 'tinyint', '4', 'unsigned', '0', 'not null', 'defaultsortdir');
}
if ($oldversion < 2006032900) {
table_column('data', '', 'csstemplate', 'text', '', '', '', 'not null', 'rsstemplate');
}
return true;
}

View File

@ -28,10 +28,11 @@ CREATE TABLE prefix_data (
rssarticles int(4) unsigned NOT NULL default '0',
singletemplate text NOT NULL default '',
listtemplate text NOT NULL default '',
addtemplate text NOT NULL default '',
rsstemplate text NOT NULL default '',
listtemplateheader text NOT NULL default '',
listtemplatefooter text NOT NULL default '',
addtemplate text NOT NULL default '',
rsstemplate text NOT NULL default '',
csstemplate text NOT NULL default '',
approval tinyint(4) unsigned NOT NULL default '0',
scale int(10) NOT NULL default '0',
assessed int(10) unsigned NOT NULL default '0',

View File

@ -45,6 +45,10 @@ function data_upgrade($oldversion) {
table_column('data', '', 'defaultsortdir', 'tinyint', '4', 'unsigned', '0', 'not null', 'defaultsort');
table_column('data', '', 'editany', 'tinyint', '4', 'unsigned', '0', 'not null', 'defaultsortdir');
}
if ($oldversion < 2006032900) {
table_column('data', '', 'csstemplate', 'text', '', '', '', 'not null', 'rsstemplate');
}
return true;
}

View File

@ -14,10 +14,11 @@ CREATE TABLE prefix_data (
rssarticles integer NOT NULL default '0',
singletemplate text NOT NULL default '',
listtemplate text NOT NULL default '',
addtemplate text NOT NULL default '',
rsstemplate text NOT NULL default '',
listtemplateheader text NOT NULL default '',
listtemplatefooter text NOT NULL default '',
addtemplate text NOT NULL default '',
rsstemplate text NOT NULL default '',
csstemplate text NOT NULL default '',
approval int NOT NULL default '0',
scale integer NOT NULL default '0',
assessed integer NOT NULL default '0',

View File

@ -5,8 +5,8 @@
// This fragment is called by /admin/index.php
////////////////////////////////////////////////////////////////////////////////
$module->version = 2006032700;
$module->requires = 2005060223; // Requires this Moodle version
$module->version = 2006032900;
$module->requires = 2005060230; // Requires this Moodle version
$module->cron = 60;
?>