mirror of
https://github.com/tgdrive/teldrive.git
synced 2025-09-08 15:36:24 +08:00
8 lines
No EOL
214 B
SQL
8 lines
No EOL
214 B
SQL
-- +goose Up
|
|
-- +goose StatementBegin
|
|
|
|
ALTER TABLE teldrive.files DROP CONSTRAINT unique_file;
|
|
|
|
ALTER TABLE teldrive.files ADD CONSTRAINT unique_file UNIQUE (name, parent_id, user_id,status)
|
|
|
|
-- +goose StatementEnd |