25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

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

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);