-- +goose Up
-- +goose StatementBegin
ALTER TABLE log_post
    DROP CONSTRAINT log_post_log_short_id_position_key,
    ADD  CONSTRAINT log_post_log_short_id_position_key UNIQUE(log_short_id, position) DEFERRABLE;
-- +goose StatementEnd

-- +goose Down
-- +goose StatementBegin
ALTER TABLE log_post
    DROP CONSTRAINT log_post_log_short_id_position_key,
    ADD  CONSTRAINT log_post_log_short_id_position_key UNIQUE(log_short_id, position);
-- +goose StatementEnd
