mirror of
https://github.com/AppFlowy-IO/AppFlowy-Cloud.git
synced 2025-04-19 03:24:42 -04:00
fix: migration script
This commit is contained in:
parent
10fb3dc258
commit
fa3b15f6e1
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue