Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Avoid dropping is_complete column for backward compatibility
Max Brunsfeld49379924cb9a
diff --git a/crates/collab/migrations.sqlite/20221109000000_test_schema.sql b/crates/collab/migrations.sqlite/20221109000000_test_schema.sqlindex f89e46f8c92..32254d5757d 100644--- a/crates/collab/migrations.sqlite/20221109000000_test_schema.sql+++ b/crates/collab/migrations.sqlite/20221109000000_test_schema.sql@@ -57,6 +57,7 @@ CREATE TABLE "worktrees" ("abs_path" VARCHAR NOT NULL,"visible" BOOL NOT NULL,"scan_id" INTEGER NOT NULL,+ "is_complete" BOOL NOT NULL DEFAULT FALSE,"completed_scan_id" INTEGER NOT NULL,PRIMARY KEY(project_id, id));diff --git a/crates/collab/migrations/20230103200902_replace_is_completed_with_completed_scan_id.sql b/crates/collab/migrations/20230103200902_replace_is_completed_with_completed_scan_id.sqlindex e0f301b2e0c..1894d888b92 100644--- a/crates/collab/migrations/20230103200902_replace_is_completed_with_completed_scan_id.sql+++ b/crates/collab/migrations/20230103200902_replace_is_completed_with_completed_scan_id.sql@@ -1,3 +1,3 @@ALTER TABLE worktrees- DROP COLUMN is_complete,+ ALTER COLUMN is_complete SET DEFAULT FALSE,ADD COLUMN completed_scan_id INT8;