Files
api/database/postgres/migrations/20210327143158_create_table_post.sql
T
gisle 6748ff8bc2
continuous-integration/drone/push Build is passing
add log and post postgres repos.
2021-03-28 15:10:56 +02:00

21 lines
437 B
SQL

-- +goose Up
-- +goose StatementBegin
CREATE TABLE log_post (
id TEXT NOT NULL PRIMARY KEY,
log_short_id TEXT NOT NULL,
time TIMESTAMP NOT NULL,
kind TEXT NOT NULL,
nick TEXT NOT NULL,
text TEXT NOT NULL,
position INT NOT NULL,
ts_vector TSVECTOR NOT NULL,
UNIQUE (log_short_id, position)
);
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP TABLE log_post;
-- +goose StatementEnd