Allow NULL in users.preferences column in postgres and sqlite db, the same as for other engines (#7767)

This commit is contained in:
Aleksander Machniak
2020-12-29 16:21:14 +01:00
parent d4164e02c3
commit 6cddb27456
11 changed files with 48 additions and 7 deletions

View File

@@ -25,7 +25,7 @@ CREATE TABLE users (
failed_login timestamp with time zone DEFAULT NULL,
failed_login_counter integer DEFAULT NULL,
"language" varchar(16),
preferences text DEFAULT ''::text NOT NULL,
preferences text DEFAULT NULL,
CONSTRAINT users_username_key UNIQUE (username, mail_host)
);
@@ -343,4 +343,4 @@ CREATE TABLE "system" (
value text
);
INSERT INTO "system" (name, value) VALUES ('roundcube-version', '2020091000');
INSERT INTO "system" (name, value) VALUES ('roundcube-version', '2020122900');