Skip to content

Commit f13cef9

Browse files
committed
Attempted fixes
1 parent f1bf58d commit f13cef9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sql/pg.sql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ CREATE TABLE rostergroups (
5858
username text NOT NULL,
5959
jid text NOT NULL,
6060
grp text NOT NULL,
61-
PRIMARY KEY (username, jid)
61+
PRIMARY KEY (username, jid, grp)
6262
);
6363

6464
CREATE TABLE sr_group (
@@ -173,7 +173,8 @@ CREATE TABLE privacy_list (
173173
CREATE UNIQUE INDEX i_privacy_list_username_name ON privacy_list USING btree (username, name);
174174

175175
CREATE TABLE privacy_list_data (
176-
id bigint PRIMARY KEY REFERENCES privacy_list(id) ON DELETE CASCADE,
176+
seq BIGSERIAL PRIMARY KEY,
177+
id bigint REFERENCES privacy_list(id) ON DELETE CASCADE,
177178
t character(1) NOT NULL,
178179
value text NOT NULL,
179180
action character(1) NOT NULL,

0 commit comments

Comments
 (0)