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.

18 lines
407 B

  1. -- +goose Up
  2. -- +goose StatementBegin
  3. CREATE TABLE data_change (
  4. id TEXT NOT NULL PRIMARY KEY,
  5. model TEXT NOT NULL,
  6. op TEXT NOT NULL,
  7. author TEXT NOT NULL,
  8. listed BOOLEAN NOT NULL,
  9. date TIMESTAMP NOT NULL,
  10. keys TEXT[] NOT NULL,
  11. objects JSONB NOT NULL
  12. );
  13. -- +goose StatementEnd
  14. -- +goose Down
  15. -- +goose StatementBegin
  16. DROP TABLE IF EXISTS data_change;
  17. -- +goose StatementEnd