mirror of
https://github.com/tgdrive/teldrive.git
synced 2024-11-10 09:02:52 +08:00
feat: add size to unique fingerprint
This commit is contained in:
parent
be256f5da4
commit
43a21d9d86
1 changed files with 5 additions and 0 deletions
|
@ -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
|
Loading…
Reference in a new issue