]> git.mjollnir.org Git - moodle.git/commitdiff
Added field for CSS for database templates
authormoodler <moodler>
Wed, 29 Mar 2006 17:42:42 +0000 (17:42 +0000)
committermoodler <moodler>
Wed, 29 Mar 2006 17:42:42 +0000 (17:42 +0000)
mod/data/db/mysql.php
mod/data/db/mysql.sql
mod/data/db/postgres7.php
mod/data/db/postgres7.sql
mod/data/version.php

index a31afddb3b0560f9ae7e7f4e5c7c8e9db4f250a1..edcd727723fb443dcfea5825398d01c2ddcb131f 100644 (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;
 }
index 7f52fc482433512aec6c1f6ed4cd4fb515b7a704..99e5a886ba910babcc89b878b8681000d978adc6 100755 (executable)
@@ -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',
index 2add8d6e4909967514f44015c2ea53a87f97bf84..a4d67dfe29dd34660467a6a1af5bc4617f579ef5 100644 (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;
 }
index 372400b7dde91f0a7bf515c73a711da935a35102..77395b7aeafd2c47a8b94eb178539548191c4a3b 100755 (executable)
@@ -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',
index 020ea832c9198c9cb6b94a700684af390852d17a..7b981325ef810eaf58e808a14b8c8a85ce99739c 100644 (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;
 
 ?>