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 <noreply@anthropic.com>
This commit is contained in:
2026-07-17 16:25:14 -05:00
parent 2976d5982f
commit a165c90c62

View File

@@ -490,8 +490,8 @@ CREATE TABLE IF NOT EXISTS shard_governor_terms (
governor_acct VARCHAR(120) NULL, governor_acct VARCHAR(120) NULL,
governor_web_id INT NULL, governor_web_id INT NULL,
started_at BIGINT NOT NULL, -- term start, epoch ms started_at BIGINT NOT NULL, -- term start, epoch ms
ended_at BIGINT NULL, -- term end, epoch ms; NULL = current ended_at BIGINT NULL, -- term end epoch ms (NULL = current)
votes INT NULL, -- not in the feed; reserved votes INT NULL, -- not in the feed (reserved)
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
INDEX idx_shard_gov_terms_city (city, started_at), INDEX idx_shard_gov_terms_city (city, started_at),
INDEX idx_shard_gov_terms_open (city, ended_at) INDEX idx_shard_gov_terms_open (city, ended_at)