mirror of
https://github.com/tgdrive/teldrive.git
synced 2025-01-10 09:09:43 +08:00
5 lines
245 B
SQL
5 lines
245 B
SQL
-- +goose Up
|
|
-- +goose StatementBegin
|
|
DROP INDEX IF EXISTS teldrive.unique_file;
|
|
CREATE UNIQUE INDEX IF NOT EXISTS unique_file ON teldrive.files USING btree (name, parent_id, user_id,size) WHERE (status = 'active'::text);
|
|
-- +goose StatementEnd
|