- Add width/height columns to Page (default 0, migration SQL committed). - Backfill script ranges first 16KB of each R2 object and parses with image-size. Probed all 26,209 existing pages successfully. - Export keyFromPublicUrl from lib/r2 so the script reuses the existing URL→key logic. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
4 lines
136 B
SQL
4 lines
136 B
SQL
-- AlterTable
|
|
ALTER TABLE "Page" ADD COLUMN "height" INTEGER NOT NULL DEFAULT 0,
|
|
ADD COLUMN "width" INTEGER NOT NULL DEFAULT 0;
|