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

This PR updates the test database schema files in Collab with a warning
about adding the corresponding database migration in Cloud before
merging any changes.

This should pair with the Danger warning to provide additional
signposting (and also for agents who may be modifying the files).

Includes the re-dumped schema for the addition of the `language_name`
column on the `language_servers` table.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2026-06-03 16:53:00 -04:00 committed by GitHub
parent b713cac496
commit 21212496b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View file

@ -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,

View file

@ -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 (