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.

13 lines
464 B

  1. -- +goose Up
  2. -- +goose StatementBegin
  3. ALTER TABLE log_post
  4. DROP CONSTRAINT log_post_log_short_id_position_key,
  5. ADD CONSTRAINT log_post_log_short_id_position_key UNIQUE(log_short_id, position) DEFERRABLE;
  6. -- +goose StatementEnd
  7. -- +goose Down
  8. -- +goose StatementBegin
  9. ALTER TABLE log_post
  10. DROP CONSTRAINT log_post_log_short_id_position_key,
  11. ADD CONSTRAINT log_post_log_short_id_position_key UNIQUE(log_short_id, position);
  12. -- +goose StatementEnd