mirror of
https://github.com/tgdrive/teldrive.git
synced 2025-01-10 09:09:43 +08:00
6 lines
No EOL
303 B
SQL
6 lines
No EOL
303 B
SQL
-- +goose Up
|
|
-- +goose StatementBegin
|
|
ALTER TABLE teldrive.bots DROP CONSTRAINT IF EXISTS btoken_user_un;
|
|
ALTER TABLE teldrive.bots DROP CONSTRAINT IF EXISTS btoken_user_channel_un;
|
|
ALTER TABLE teldrive.bots ADD CONSTRAINT btoken_user_channel_un UNIQUE (user_id,token,channel_id);
|
|
-- +goose StatementEnd |