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.

collab: Add a warning about modifying database schema files (#58468)

Marshall Bowers21212496b5a6
diff --git a/crates/collab/migrations.sqlite/20221109000000_test_schema.sql b/crates/collab/migrations.sqlite/20221109000000_test_schema.sql
index fe66b5749af..977d0126900 100644
--- a/crates/collab/migrations.sqlite/20221109000000_test_schema.sql
+++ b/crates/collab/migrations.sqlite/20221109000000_test_schema.sql
@@ -1,3 +1,6 @@
+-- WARNING: If you are modifying this file you MUST open a PR to the Cloud repository prior to merging any changes.
+-- If you are not Zed staff you MUST coordinate with a staff member to apply the schema migrations before this PR is merged.
+
CREATE TABLE "users" (
"id" INTEGER PRIMARY KEY AUTOINCREMENT,
"github_login" VARCHAR,
diff --git a/crates/collab/migrations/20251208000000_test_schema.sql b/crates/collab/migrations/20251208000000_test_schema.sql
index 3a3329af776..27cf684cc8d 100644
--- a/crates/collab/migrations/20251208000000_test_schema.sql
+++ b/crates/collab/migrations/20251208000000_test_schema.sql
@@ -1,5 +1,8 @@
-- This file is auto-generated. Do not modify it by hand.
-- To regenerate, run `cargo xtask db dump-schema app --collab` from the Cloud repository.
+--
+-- WARNING: If you are modifying this file you MUST open a PR to the Cloud repository prior to merging any changes.
+-- If you are not Zed staff you MUST coordinate with a staff member to apply the schema migrations before this PR is merged.
CREATE EXTENSION IF NOT EXISTS pg_trgm WITH SCHEMA public;
@@ -224,7 +227,8 @@ CREATE TABLE public.language_servers (
id bigint NOT NULL,
name character varying NOT NULL,
capabilities text NOT NULL,
- worktree_id bigint
+ worktree_id bigint,
+ language_name character varying
);
CREATE TABLE public.notification_kinds (