diff options
author | Badlop <badlop@process-one.net> | 2021-10-14 13:31:46 +0200 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2021-10-14 15:28:00 +0200 |
commit | d3aa329769c09bb0614948358db2d5f98066c32a (patch) | |
tree | 714c87f9ecc8c34d6efe48b68497d0284255fbf9 /sql | |
parent | Only install some files when option enabled in configure (#3633) (diff) |
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);
Diffstat (limited to 'sql')
-rw-r--r-- | sql/pg.new.sql | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/pg.new.sql b/sql/pg.new.sql index b3473a1a0..6a0743f23 100644 --- a/sql/pg.new.sql +++ b/sql/pg.new.sql @@ -311,7 +311,7 @@ CREATE TABLE vcard_search ( lorgname text NOT NULL, orgunit 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); |