Merge pull request #655 from AppFlowy-IO/publish-collab-tables

feat: add index and uniqueness for publish name
This commit is contained in:
Zack 2024-06-27 14:58:57 +08:00 committed by GitHub
commit 80e1dce500
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,6 @@
-- Add a unique constraint on publish_name
ALTER TABLE public.af_published_collab
ADD CONSTRAINT unique_publish_name UNIQUE (publish_name);
-- Add an index on publish_name
CREATE INDEX idx_publish_name ON public.af_published_collab (publish_name);