Move notes to the Postgres database
This commit is contained in:
11
src/main/resources/db/migration/postgresql/V0.2__note.sql
Normal file
11
src/main/resources/db/migration/postgresql/V0.2__note.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
CREATE TABLE note(
|
||||
id serial NOT NULL,
|
||||
receiver text NOT NULL,
|
||||
sender text NOT NULL,
|
||||
message text NOT NULL,
|
||||
timestamp bigint NOT NULL,
|
||||
fame smallint NOT NULL,
|
||||
deleted smallint NOT NULL,
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
GRANT SELECT, INSERT, UPDATE ON note TO ${server-username};
|
||||
Reference in New Issue
Block a user