Fix vcard_search definition in pgsql new schema (thanks to Stu Tomlinson)(#3695)

How to update an existing database:
ALTER TABLE vcard_search DROP CONSTRAINT vcard_search_pkey;
ALTER TABLE vcard_search ADD PRIMARY KEY (server_host, lusername);
This commit is contained in:
Badlop 2021-10-14 13:31:46 +02:00
parent db920b7d7b
commit d3aa329769
1 changed files with 1 additions and 1 deletions

View File

@ -311,7 +311,7 @@ CREATE TABLE vcard_search (
lorgname text NOT NULL, lorgname text NOT NULL,
orgunit text NOT NULL, orgunit text NOT NULL,
lorgunit text NOT NULL, lorgunit text NOT NULL,
PRIMARY KEY (server_host, username) PRIMARY KEY (server_host, lusername)
); );
CREATE INDEX i_vcard_search_sh_lfn ON vcard_search(server_host, lfn); CREATE INDEX i_vcard_search_sh_lfn ON vcard_search(server_host, lfn);