Skip to content

Commit

Permalink
Attempted fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mzealey committed Nov 4, 2023
1 parent f1bf58d commit f13cef9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sql/pg.sql
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ CREATE TABLE rostergroups (
username text NOT NULL,
jid text NOT NULL,
grp text NOT NULL,
PRIMARY KEY (username, jid)
PRIMARY KEY (username, jid, grp)
);

CREATE TABLE sr_group (
Expand Down Expand Up @@ -173,7 +173,8 @@ CREATE TABLE privacy_list (
CREATE UNIQUE INDEX i_privacy_list_username_name ON privacy_list USING btree (username, name);

CREATE TABLE privacy_list_data (
id bigint PRIMARY KEY REFERENCES privacy_list(id) ON DELETE CASCADE,
seq BIGSERIAL PRIMARY KEY,
id bigint REFERENCES privacy_list(id) ON DELETE CASCADE,
t character(1) NOT NULL,
value text NOT NULL,
action character(1) NOT NULL,
Expand Down

0 comments on commit f13cef9

Please sign in to comment.