Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Remove project_id foreign key from `room_participants`

Antonio Scandurrab97c35a4686f
diff --git a/crates/collab/migrations.sqlite/20221109000000_test_schema.sql b/crates/collab/migrations.sqlite/20221109000000_test_schema.sql
index 347db6a71a8..90fd8ace122 100644
--- a/crates/collab/migrations.sqlite/20221109000000_test_schema.sql
+++ b/crates/collab/migrations.sqlite/20221109000000_test_schema.sql
@@ -118,8 +118,8 @@ CREATE TABLE "room_participants" (
"answering_connection_id" INTEGER,
"answering_connection_epoch" TEXT,
"location_kind" INTEGER,
- "location_project_id" INTEGER REFERENCES projects (id),
- "initial_project_id" INTEGER REFERENCES projects (id),
+ "location_project_id" INTEGER,
+ "initial_project_id" INTEGER,
"calling_user_id" INTEGER NOT NULL REFERENCES users (id),
"calling_connection_id" INTEGER NOT NULL,
"calling_connection_epoch" TEXT NOT NULL
diff --git a/crates/collab/migrations/20221111092550_reconnection_support.sql b/crates/collab/migrations/20221111092550_reconnection_support.sql
index 6278fa7a595..5e8bada2f94 100644
--- a/crates/collab/migrations/20221111092550_reconnection_support.sql
+++ b/crates/collab/migrations/20221111092550_reconnection_support.sql
@@ -80,8 +80,8 @@ CREATE TABLE "room_participants" (
"answering_connection_id" INTEGER,
"answering_connection_epoch" UUID,
"location_kind" INTEGER,
- "location_project_id" INTEGER REFERENCES projects (id),
- "initial_project_id" INTEGER REFERENCES projects (id),
+ "location_project_id" INTEGER,
+ "initial_project_id" INTEGER,
"calling_user_id" INTEGER NOT NULL REFERENCES users (id),
"calling_connection_id" INTEGER NOT NULL,
"calling_connection_epoch" UUID NOT NULL