From 6fe661e8797f5132b91dc2ae7ae5ce714b5ed602 Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Wed, 24 May 2006 06:16:10 +0000 Subject: [PATCH] added rsstitletemplate field --- mod/data/db/mysql.php | 3 +++ mod/data/db/mysql.sql | 1 + mod/data/db/postgres7.php | 4 ++++ mod/data/db/postgres7.sql | 1 + mod/data/version.php | 2 +- 5 files changed, 10 insertions(+), 1 deletion(-) diff --git a/mod/data/db/mysql.php b/mod/data/db/mysql.php index 3185768589..c992c5d458 100644 --- a/mod/data/db/mysql.php +++ b/mod/data/db/mysql.php @@ -64,6 +64,9 @@ function data_upgrade($oldversion) { table_column('data_fields','param10','param10','text','','','','not null'); } + if ($oldversion < 2006052400) { + table_column('data','','rsstitletemplate','text','','','','not null','rsstemplate'); + } return true; } diff --git a/mod/data/db/mysql.sql b/mod/data/db/mysql.sql index 24d671a6a3..d6e74f3bff 100755 --- a/mod/data/db/mysql.sql +++ b/mod/data/db/mysql.sql @@ -32,6 +32,7 @@ CREATE TABLE prefix_data ( listtemplatefooter text NOT NULL default '', addtemplate text NOT NULL default '', rsstemplate text NOT NULL default '', + rsstitletemplate text NOT NULL default '', csstemplate text NOT NULL default '', approval tinyint(4) unsigned NOT NULL default '0', scale int(10) NOT NULL default '0', diff --git a/mod/data/db/postgres7.php b/mod/data/db/postgres7.php index ca9fd6a938..597b4d59df 100644 --- a/mod/data/db/postgres7.php +++ b/mod/data/db/postgres7.php @@ -148,6 +148,10 @@ function data_upgrade($oldversion) { } + if ($oldversion < 2006052400) { + table_column('data','','rsstitletemplate','text','','','','not null','rsstemplate'); + } + return true; } diff --git a/mod/data/db/postgres7.sql b/mod/data/db/postgres7.sql index f670e597e6..1e1910ac54 100755 --- a/mod/data/db/postgres7.sql +++ b/mod/data/db/postgres7.sql @@ -21,6 +21,7 @@ CREATE TABLE prefix_data ( listtemplatefooter text NOT NULL default '', addtemplate text NOT NULL default '', rsstemplate text NOT NULL default '', + rsstitletemplate text NOT NULL default '', csstemplate text NOT NULL default '', approval integer NOT NULL default '0', scale integer NOT NULL default '0', diff --git a/mod/data/version.php b/mod/data/version.php index 691882e4bc..65ec57ee84 100644 --- a/mod/data/version.php +++ b/mod/data/version.php @@ -5,7 +5,7 @@ // This fragment is called by /admin/index.php //////////////////////////////////////////////////////////////////////////////// -$module->version = 2006050500; +$module->version = 2006052400; $module->requires = 2005060230; // Requires this Moodle version $module->cron = 60; -- 2.39.5