managarten/apps/api/drizzle/website
Till JS c404db5b6e fix(website): publish failed with uuid type error on Better-Auth ids
published_by, created_by, and space_id were declared as uuid, but
Mana user + space ids are Better-Auth nanoids stored as text. The
insert into website.published_snapshots raised `invalid input syntax
for type uuid` and Hono swallowed it as a generic 500.

Changes:
- schema.ts: uuid -> text on the three columns
- 0003_fix_id_types.sql: ALTER COLUMN on existing installs
- publish.ts: replace UUID regex on X-Mana-Space with a nanoid-shaped
  check (it was silently nulling valid space ids)
- publish.ts: log + return the actual error message on the 500 path
  so the next unhandled failure is visible instead of opaque

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-23 21:43:57 +02:00
..
0000_init.sql feat(webapp): wire isParallelSafe in Companion chat + Mission runner 2026-04-23 14:11:24 +02:00
0001_submissions.sql feat(website): M4 — forms + moduleEmbed 2026-04-23 14:36:52 +02:00
0002_custom_domains.sql feat(website): M6 — subdomain publish + custom-domain foundation 2026-04-23 15:29:42 +02:00
0003_fix_id_types.sql fix(website): publish failed with uuid type error on Better-Auth ids 2026-04-23 21:43:57 +02:00