]> git.mjollnir.org Git - moodle.git/commitdiff
Change type of config->value to text (to allow longer info)
authormoodler <moodler>
Thu, 29 Jan 2004 04:13:55 +0000 (04:13 +0000)
committermoodler <moodler>
Thu, 29 Jan 2004 04:13:55 +0000 (04:13 +0000)
lib/db/mysql.php
lib/db/mysql.sql
lib/db/postgres7.php
lib/db/postgres7.sql
version.php

index c125bd375ae954d05ee2f082cd06a7340383c9d5..1fe42506f7e0b1e0adfcc32ee55c09585ae1d621 100644 (file)
@@ -630,6 +630,9 @@ function main_upgrade($oldversion=0) {
                             ) TYPE=MyISAM COMMENT='Allows modules to store arbitrary user preferences'; ");
     }
 
+    if ($oldversion < 2004012900) {
+        table_column("config", "value", "value", "text", "", "", "");
+    }
 
     return $result;
 
index 0682cafa4b06c91d22d6234cabceef8bd01d8faa..b875ebf4c2091d95827bb8d938c902ddc13d500f 100644 (file)
@@ -17,7 +17,7 @@
 CREATE TABLE `prefix_config` (
   `id` int(10) unsigned NOT NULL auto_increment,
   `name` varchar(255) NOT NULL default '',
-  `value` varchar(255) NOT NULL default '',
+  `value` text NOT NULL default '',
   PRIMARY KEY  (`id`),
   UNIQUE KEY `name` (`name`)
 ) TYPE=MyISAM COMMENT='Moodle configuration variables';
index 3885f1611477df7acc0ef082c60fba88a40ebf6c..5470e3e24e17054c172e0bf3a215bcd2b7dfa7e0 100644 (file)
@@ -376,6 +376,10 @@ function main_upgrade($oldversion=0) {
         modify_database("", "CREATE INDEX prefix_user_preferences_useridname_idx ON prefix_user_preferences (userid,name);");
     }
 
+    if ($oldversion < 2004012900) {
+        table_column("config", "value", "value", "text", "", "", "");
+    }
+
     return $result;
 }
 
index efe274a7ef6a9215d7a613351e8a62e48c4f8c3c..ba5c44e8448fb837dfc02fea83a08c20e30725de 100644 (file)
@@ -1,7 +1,7 @@
 CREATE TABLE prefix_config (
    id SERIAL PRIMARY KEY,
    name varchar(255) NOT NULL default '',
-   value varchar(255) NOT NULL default '',
+   value text NOT NULL default '',
    CONSTRAINT config_name_uk UNIQUE (name)
 );
 
index 7fd5b3270b6c00f0baa7b4628a094f2df9467451..be3924d3d24e6455c900d082a8aaffc82f29f8cc 100644 (file)
@@ -5,7 +5,7 @@
 // database to determine whether upgrades should
 // be performed (see lib/db/*.php)
 
-$version = 2004012800;   // The current version is a date (YYYYMMDDXX)
+$version = 2004012900;   // The current version is a date (YYYYMMDDXX)
 
 $release = "1.2 development";   // User-friendly version number