teldrive/internal/database/migrations/20240718155942_index.sql
2024-07-18 16:06:03 +05:30

6 lines
No EOL
292 B
SQL

-- +goose Up
-- +goose StatementBegin
ALTER TABLE teldrive.bots DROP CONSTRAINT IF EXISTS btoken_user_channel_un;
ALTER TABLE teldrive.bots DROP CONSTRAINT IF EXISTS bots_pkey;
ALTER TABLE teldrive.bots ADD CONSTRAINT bots_pkey PRIMARY KEY (user_id, token, channel_id);
-- +goose StatementEnd