From b97c35a4686f27054e4df92616d79afd86c15e21 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Mon, 5 Dec 2022 15:16:06 +0100 Subject: [PATCH] Remove project_id foreign key from `room_participants` --- .../collab/migrations.sqlite/20221109000000_test_schema.sql | 4 ++-- .../collab/migrations/20221111092550_reconnection_support.sql | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/collab/migrations.sqlite/20221109000000_test_schema.sql b/crates/collab/migrations.sqlite/20221109000000_test_schema.sql index 347db6a71a8d44f21f5cfcac7c3c73a1c67856c9..90fd8ace122ff0a6e28b879634b574e6876951a0 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 6278fa7a595b05cb7adbf97f622b06f675116af3..5e8bada2f9492b91212108e0eae1b0b99d53b63a 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