diff options
Diffstat (limited to 'modules/locale/locale.install')
-rw-r--r-- | modules/locale/locale.install | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/locale/locale.install b/modules/locale/locale.install index dea44fe59..b818f1efa 100644 --- a/modules/locale/locale.install +++ b/modules/locale/locale.install @@ -19,7 +19,8 @@ function locale_install() { lid int NOT NULL auto_increment, location varchar(255) NOT NULL default '', source blob NOT NULL, - PRIMARY KEY (lid) + PRIMARY KEY (lid), + KEY source (source(30)) ) /*!40100 DEFAULT CHARACTER SET UTF8 */ "); db_query("CREATE TABLE {locales_target} ( @@ -63,6 +64,7 @@ function locale_install() { db_query("CREATE INDEX {locales_target}_locale_idx ON {locales_target} (locale)"); db_query("CREATE INDEX {locales_target}_plid_idx ON {locales_target} (plid)"); db_query("CREATE INDEX {locales_target}_plural_idx ON {locales_target} (plural)"); + db_query("CREATE INDEX {locales_source}_source_idx ON {locales_source} (source)"); break; } db_query("INSERT INTO {locales_meta} (locale, name, enabled, isdefault) VALUES ('en', 'English', '1', '1')"); |