Skip to content

Commit

Permalink
fix: migration script
Browse files Browse the repository at this point in the history
  • Loading branch information
speed2exe committed Nov 5, 2024
1 parent 10fb3dc commit fa3b15f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions migrations/20241101063559_af_workspace_namespace.sql
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ FOR EACH ROW
EXECUTE FUNCTION create_workspace_namespace();

-- Insert existing workspace records into `af_workspace_namespace`
INSERT INTO af_workspace_namespace (namespace, workspace_id)
SELECT publish_namespace, workspace_id
INSERT INTO af_workspace_namespace (namespace, workspace_id, is_original)
SELECT publish_namespace, workspace_id, TRUE
FROM af_workspace
ON CONFLICT (namespace) DO NOTHING; -- if there happens to be a workspace creation during migration

Expand Down

0 comments on commit fa3b15f

Please sign in to comment.