Fix server not able to use note sequence
This commit is contained in:
@@ -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