feat: add size to unique fingerprint

This commit is contained in:
divyam234 2024-06-09 03:07:31 +05:30
parent be256f5da4
commit 43a21d9d86

View file

@ -0,0 +1,5 @@
-- +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