From a165c90c622c3c6ebb65b544481f79fa50a7d1fa Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 17 Jul 2026 16:25:14 -0500 Subject: [PATCH] fix(schema): remove semicolons from shard_governor_terms inline comments ensureSchema() splits schema.sql on ';' and is not comment-aware, so the inline comments "epoch ms; NULL = current" and "not in the feed; reserved" shattered the CREATE TABLE into invalid fragments (ER_PARSE_ERROR on a fresh boot). Reworded both to drop the semicolons. Caught during live-stack bring-up. Co-Authored-By: Claude Opus 4.8 --- server/db/schema.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/db/schema.sql b/server/db/schema.sql index a33942c..e235498 100644 --- a/server/db/schema.sql +++ b/server/db/schema.sql @@ -490,8 +490,8 @@ CREATE TABLE IF NOT EXISTS shard_governor_terms ( governor_acct VARCHAR(120) NULL, governor_web_id INT NULL, started_at BIGINT NOT NULL, -- term start, epoch ms - ended_at BIGINT NULL, -- term end, epoch ms; NULL = current - votes INT NULL, -- not in the feed; reserved + ended_at BIGINT NULL, -- term end epoch ms (NULL = current) + votes INT NULL, -- not in the feed (reserved) created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, INDEX idx_shard_gov_terms_city (city, started_at), INDEX idx_shard_gov_terms_open (city, ended_at)