GraphQL API and utilities for the rpdata project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
437 B

  1. -- +goose Up
  2. -- +goose StatementBegin
  3. CREATE TABLE log_post (
  4. id TEXT NOT NULL PRIMARY KEY,
  5. log_short_id TEXT NOT NULL,
  6. time TIMESTAMP NOT NULL,
  7. kind TEXT NOT NULL,
  8. nick TEXT NOT NULL,
  9. text TEXT NOT NULL,
  10. position INT NOT NULL,
  11. ts_vector TSVECTOR NOT NULL,
  12. UNIQUE (log_short_id, position)
  13. );
  14. -- +goose StatementEnd
  15. -- +goose Down
  16. -- +goose StatementBegin
  17. DROP TABLE log_post;
  18. -- +goose StatementEnd