teldrive/internal/database/migrations/20240531194813_modify_constraint.sql
2024-05-31 20:28:40 +05:30

5 lines
No EOL
216 B
SQL

-- +goose Up
-- +goose StatementBegin
ALTER TABLE teldrive.uploads DROP CONSTRAINT IF EXISTS uploads_pk;
ALTER TABLE teldrive.uploads ADD CONSTRAINT uploads_pk PRIMARY KEY (part_id,channel_id);
-- +goose StatementEnd