Change type of config->value to text (to allow longer info)

This commit is contained in:
moodler 2004-01-29 04:13:55 +00:00
parent 916bb3daec
commit ba39fa10cc
5 changed files with 10 additions and 3 deletions

View 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;

View 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';

View 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;
}

View 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)
);

View 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