Enigma: Fixed multi-host syncronization of private and deleted keys and pubring.kbx file

Added context column to filestore table for easier listing of stored files.
This commit is contained in:
Aleksander Machniak
2018-12-23 13:51:39 +01:00
parent 81337b7f31
commit 0e640e95c9
12 changed files with 141 additions and 24 deletions

View File

@@ -297,10 +297,11 @@ CREATE TABLE "filestore" (
file_id integer DEFAULT nextval('filestore_seq'::text) PRIMARY KEY,
user_id integer NOT NULL
REFERENCES users (user_id) ON DELETE CASCADE ON UPDATE CASCADE,
context varchar(32) NOT NULL,
filename varchar(128) NOT NULL,
mtime integer NOT NULL,
data text NOT NULL,
CONSTRAINT filestore_user_id_filename UNIQUE (user_id, filename)
CONSTRAINT filestore_user_id_filename UNIQUE (user_id, context, filename)
);
--
@@ -313,4 +314,4 @@ CREATE TABLE "system" (
value text
);
INSERT INTO "system" (name, value) VALUES ('roundcube-version', '2018021600');
INSERT INTO "system" (name, value) VALUES ('roundcube-version', '2018122300');