Support for language codes up to 16 chars long (e.g. es-419) in database schema (#6851)

This commit is contained in:
Aleksander Machniak
2020-02-01 09:40:11 +01:00
parent 60c8dd2e23
commit 50d6ea30e0
11 changed files with 84 additions and 16 deletions

View File

@@ -74,7 +74,7 @@ CREATE TABLE users (
last_login datetime DEFAULT NULL,
failed_login datetime DEFAULT NULL,
failed_login_counter integer DEFAULT NULL,
language varchar(5),
language varchar(16),
preferences text NOT NULL default ''
);
@@ -99,11 +99,11 @@ CREATE INDEX ix_session_changed ON session (changed);
CREATE TABLE dictionary (
user_id integer DEFAULT NULL,
"language" varchar(5) NOT NULL,
language varchar(16) NOT NULL,
data text NOT NULL
);
CREATE UNIQUE INDEX ix_dictionary_user_language ON dictionary (user_id, "language");
CREATE UNIQUE INDEX ix_dictionary_user_language ON dictionary (user_id, language);
--
-- Table structure for table searches
@@ -215,4 +215,4 @@ CREATE TABLE system (
value text NOT NULL
);
INSERT INTO system (name, value) VALUES ('roundcube-version', '2019092900');
INSERT INTO system (name, value) VALUES ('roundcube-version', '2020020100');