From d573a2c72e55fffa745969935714679435f66a3e Mon Sep 17 00:00:00 2001 From: Kieran Klukas Date: Wed, 29 Jul 2026 10:05:35 -0400 Subject: [PATCH] chore: remove brand column --- migrations/001_initial_schema.sql | 1 - migrations/002_drop_brand.sql | 2 ++ src/index.ts | 8 ++++---- src/render.ts | 1 - 4 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 migrations/002_drop_brand.sql diff --git a/migrations/001_initial_schema.sql b/migrations/001_initial_schema.sql index 788cd84..0772fb8 100644 --- a/migrations/001_initial_schema.sql +++ b/migrations/001_initial_schema.sql @@ -3,7 +3,6 @@ CREATE TABLE IF NOT EXISTS documents ( id TEXT PRIMARY KEY, title TEXT NOT NULL, date TEXT NOT NULL, - brand TEXT NOT NULL DEFAULT 'Grimoire', created_at INTEGER NOT NULL DEFAULT (unixepoch()), updated_at INTEGER NOT NULL DEFAULT (unixepoch()) ); diff --git a/migrations/002_drop_brand.sql b/migrations/002_drop_brand.sql new file mode 100644 index 0000000..69fddcc --- /dev/null +++ b/migrations/002_drop_brand.sql @@ -0,0 +1,2 @@ +-- Brand is always "Sharepoint"; drop the unused per-document column +ALTER TABLE documents DROP COLUMN brand; diff --git a/src/index.ts b/src/index.ts index 34b7871..11f7c93 100644 --- a/src/index.ts +++ b/src/index.ts @@ -13,7 +13,7 @@ const KATEX_CSS = "https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css const FONTS_URL = "https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap"; -function htmlShell(title: string, brand: string, content: string, url: string, description?: string): string { +function htmlShell(title: string, content: string, url: string, description?: string): string { return ` @@ -40,7 +40,7 @@ function htmlShell(title: string, brand: string, content: string, url: string, d - ${escapeHtml(brand)} + Sharepoint