Skip to content

Commit

Permalink
Merge pull request #964 from AppFlowy-IO/fix/namespace-migration
Browse files Browse the repository at this point in the history
fix: migration script
  • Loading branch information
speed2exe authored Nov 5, 2024
2 parents 10fb3dc + fa3b15f commit fc3728f
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 fc3728f

Please sign in to comment.