diff --git a/migrations/20240627525836_publish_collab_5.sql b/migrations/20240627525836_publish_collab_5.sql index 7a475749..605ab2f3 100644 --- a/migrations/20240627525836_publish_collab_5.sql +++ b/migrations/20240627525836_publish_collab_5.sql @@ -2,6 +2,6 @@ ALTER TABLE public.af_published_collab DROP CONSTRAINT unique_publish_name; --- Add a new unique constraint for the combination of publish_name and view_id +-- Add a new unique constraint for the combination of publish_name and workspace_id ALTER TABLE public.af_published_collab ADD CONSTRAINT unique_workspace_id_publish_name UNIQUE (workspace_id, publish_name);