mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-06 08:07:42 +00:00
Merge pull request #1949 from zed-industries/do-not-drop-unregistered
Don't drop `unregistered` column in reconnection support migration
This commit is contained in:
commit
8bd7b28056
2 changed files with 3 additions and 3 deletions
|
@ -44,7 +44,8 @@ CREATE TABLE "projects" (
|
|||
"room_id" INTEGER REFERENCES rooms (id) NOT NULL,
|
||||
"host_user_id" INTEGER REFERENCES users (id) NOT NULL,
|
||||
"host_connection_id" INTEGER NOT NULL,
|
||||
"host_connection_epoch" TEXT NOT NULL
|
||||
"host_connection_epoch" TEXT NOT NULL,
|
||||
"unregistered" BOOLEAN NOT NULL DEFAULT FALSE
|
||||
);
|
||||
CREATE INDEX "index_projects_on_host_connection_epoch" ON "projects" ("host_connection_epoch");
|
||||
|
||||
|
|
|
@ -6,8 +6,7 @@ CREATE TABLE IF NOT EXISTS "rooms" (
|
|||
ALTER TABLE "projects"
|
||||
ADD "room_id" INTEGER REFERENCES rooms (id),
|
||||
ADD "host_connection_id" INTEGER,
|
||||
ADD "host_connection_epoch" UUID,
|
||||
DROP COLUMN "unregistered";
|
||||
ADD "host_connection_epoch" UUID;
|
||||
CREATE INDEX "index_projects_on_host_connection_epoch" ON "projects" ("host_connection_epoch");
|
||||
|
||||
CREATE TABLE "worktrees" (
|
||||
|
|
Loading…
Reference in a new issue