managarten/services/mana-media/apps/api
Till JS 64b8ab30ad fix(mana-media): commit initial schema migration + run on startup
The media schema/tables were never created on fresh deploys because
mana-media only shipped a `db:push` script and nothing ever ran it
in the container. Result: every upload returned 500 the moment a
new environment came up (just hit prod again on mana.how).

- Add `db:generate` + `db:migrate` scripts and a migrate.ts runner
- Generate the initial migration covering media/media_references/
  media_thumbnails (matches what was already on local + prod, which
  were stamped manually so the migrator skips on existing deploys)
- Call runMigrations() at startup in src/index.ts so future fresh
  containers self-bootstrap. Idempotent — drizzle tracks state in
  drizzle.__drizzle_migrations.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 02:51:41 +02:00
..
src fix(mana-media): commit initial schema migration + run on startup 2026-04-10 02:51:41 +02:00
Dockerfile feat: rename ManaCore to Mana across entire codebase 2026-04-05 20:00:13 +02:00
drizzle.config.ts feat: rename ManaCore to Mana across entire codebase 2026-04-05 20:00:13 +02:00
package.json fix(mana-media): commit initial schema migration + run on startup 2026-04-10 02:51:41 +02:00
test-image.png 🔧 fix(mac-mini): update health checks and disable missing services 2026-02-12 13:28:55 +01:00
tsconfig.json refactor(mana-media): migrate from NestJS to Hono/Bun 2026-03-28 18:12:42 +01:00