Permalink
Browse files

Reduced fields for config_plugins from 255 to 100

  • Loading branch information...
1 parent b7ab75c commit 036110e05510c89e72e9d32d5d701fd6408e421d moodler committed Jul 15, 2005
Showing with 8 additions and 8 deletions.
  1. +2 −2 lib/db/mysql.php
  2. +2 −2 lib/db/mysql.sql
  3. +2 −2 lib/db/postgres7.php
  4. +2 −2 lib/db/postgres7.sql
View
@@ -1374,8 +1374,8 @@ function main_upgrade($oldversion=0) {
execute_sql("CREATE TABLE `{$CFG->prefix}config_plugins` (
`id` int(10) unsigned NOT NULL auto_increment,
- `plugin` varchar(250) NOT NULL default 'core',
- `name` varchar(250) NOT NULL default '',
+ `plugin` varchar(100) NOT NULL default 'core',
+ `name` varchar(100) NOT NULL default '',
`value` text NOT NULL default '',
PRIMARY KEY (`id`),
UNIQUE KEY `plugin_name` (`plugin`, `name`)
View
@@ -29,8 +29,8 @@ CREATE TABLE `prefix_config` (
CREATE TABLE `prefix_config_plugins` (
`id` int(10) unsigned NOT NULL auto_increment,
- `plugin` varchar(250) NOT NULL default 'core',
- `name` varchar(250) NOT NULL default '',
+ `plugin` varchar(100) NOT NULL default 'core',
+ `name` varchar(100) NOT NULL default '',
`value` text NOT NULL default '',
PRIMARY KEY (`id`),
UNIQUE KEY `plugin_name` (`plugin`, `name`)
View
@@ -1094,8 +1094,8 @@ function main_upgrade($oldversion=0) {
execute_sql("CREATE TABLE {$CFG->prefix}config_plugins (
id SERIAL PRIMARY KEY,
- plugin varchar(255) NOT NULL default 'core',
- name varchar(255) NOT NULL default '',
+ plugin varchar(100) NOT NULL default 'core',
+ name varchar(100) NOT NULL default '',
value text NOT NULL default '',
CONSTRAINT {$CFG->prefix}config_plugins_plugin_name_uk UNIQUE (plugin, name)
);");
View
@@ -7,8 +7,8 @@ CREATE TABLE prefix_config (
CREATE TABLE prefix_config_plugins (
id SERIAL PRIMARY KEY,
- plugin varchar(255) NOT NULL default 'core',
- name varchar(255) NOT NULL default '',
+ plugin varchar(100) NOT NULL default 'core',
+ name varchar(100) NOT NULL default '',
value text NOT NULL default '',
CONSTRAINT prefix_config_plugins_plugin_name_uk UNIQUE (plugin, name)
);

0 comments on commit 036110e

Please sign in to comment.