Fix server not able to use note sequence
This commit is contained in:
1 parent
d018b0f5e5
commit
55e1f65bbd
1 file changed
+2
-1
@@ -8,5 +8,6 @@ CREATE TABLE note(
|
|||||||
deleted smallint NOT NULL,
|
deleted smallint NOT NULL,
|
||||||
PRIMARY KEY (id)
|
PRIMARY KEY (id)
|
||||||
);
|
);
|
||||||
CREATE INDEX idx_note_received ON note(receiver);
|
CREATE INDEX note_received_idx ON note(receiver);
|
||||||
GRANT SELECT, INSERT, UPDATE ON note TO ${server-username};
|
GRANT SELECT, INSERT, UPDATE ON note TO ${server-username};
|
||||||
|
GRANT USAGE ON note_id_seq TO ${server-username};
|
||||||
Reference in new issue
Block a user