From: vyshane Date: Thu, 21 Sep 2006 04:10:36 +0000 (+0000) Subject: Removed column ratings from data table X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=9ae965d379e074d5370ecd9d7793a4b912b730f0;p=moodle.git Removed column ratings from data table --- diff --git a/mod/data/db/install.xml b/mod/data/db/install.xml index 7d2569d110..7ae8515696 100644 --- a/mod/data/db/install.xml +++ b/mod/data/db/install.xml @@ -4,14 +4,13 @@ xsi:noNamespaceSchemaLocation="../../../lib/xmldb/xmldb.xsd" > - +
- - - + + diff --git a/mod/data/db/mysql.php b/mod/data/db/mysql.php index 541a62ef70..354d0a189c 100644 --- a/mod/data/db/mysql.php +++ b/mod/data/db/mysql.php @@ -104,6 +104,7 @@ function data_upgrade($oldversion) { modify_database('', 'ALTER TABLE prefix_data DROP COLUMN participants;'); modify_database('', 'ALTER TABLE prefix_data DROP COLUMN assesspublic;'); + modify_database('', 'ALTER TABLE prefix_data DROP COLUMN ratings;'); } diff --git a/mod/data/db/mysql.sql b/mod/data/db/mysql.sql index 31dabf659b..6e71b25026 100755 --- a/mod/data/db/mysql.sql +++ b/mod/data/db/mysql.sql @@ -15,7 +15,6 @@ CREATE TABLE prefix_data ( course int(10) unsigned NOT NULL default '0', name varchar(255) NOT NULL default '', intro text NOT NULL default '', - ratings int(10) NOT NULL default '0', comments int(4) unsigned NOT NULL default '0', timeavailablefrom int(10) unsigned NOT NULL default '0', timeavailableto int(10) unsigned NOT NULL default '0', diff --git a/mod/data/db/postgres7.php b/mod/data/db/postgres7.php index beebfab51c..f72426c726 100644 --- a/mod/data/db/postgres7.php +++ b/mod/data/db/postgres7.php @@ -188,6 +188,7 @@ function data_upgrade($oldversion) { modify_database('', 'ALTER TABLE prefix_data DROP COLUMN participants;'); modify_database('', 'ALTER TABLE prefix_data DROP COLUMN assesspublic;'); + modify_database('', 'ALTER TABLE prefix_data DROP COLUMN ratings;'); } diff --git a/mod/data/db/postgres7.sql b/mod/data/db/postgres7.sql index 30711a475f..045d205315 100755 --- a/mod/data/db/postgres7.sql +++ b/mod/data/db/postgres7.sql @@ -4,7 +4,6 @@ CREATE TABLE prefix_data ( course integer NOT NULL default '0', name varchar(255) NOT NULL default '', intro text NOT NULL default '', - ratings integer NOT NULL default '0', comments integer NOT NULL default '0', timeavailablefrom integer NOT NULL default '0', timeavailableto integer NOT NULL default '0',