mirror of
https://github.com/openziti/zrok.git
synced 2025-08-09 00:04:43 +02:00
basic unique name implementation (#123)
This commit is contained in:
@ -0,0 +1,7 @@
|
||||
-- +migrate Up
|
||||
|
||||
-- remove the old unique index (which did not respect the deleted flag)
|
||||
ALTER TABLE shares DROP CONSTRAINT shares_token_key;
|
||||
|
||||
-- add a new unique index which only constrains uniqueness for not-deleted rows
|
||||
CREATE UNIQUE INDEX shares_token_idx ON shares(token) WHERE deleted is false;
|
Reference in New Issue
Block a user