managarten/services/mana-media
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
..
apps/api fix(mana-media): commit initial schema migration + run on startup 2026-04-10 02:51:41 +02:00
packages/client chore(workspace): remove redundant nested lockfiles + workspace.yaml 2026-04-09 11:57:11 +02:00
.env.example feat(mana-media): add unified media processing platform MVP 2026-02-01 03:25:53 +01:00
CLAUDE.md fix(mana-auth) + chore: rewrite /api/v1/auth/login JWT mint, remove Matrix stack 2026-04-08 16:32:13 +02:00
docker-compose.yml feat(mana-media): add unified media processing platform MVP 2026-02-01 03:25:53 +01:00
drizzle.config.ts feat: rename ManaCore to Mana across entire codebase 2026-04-05 20:00:13 +02:00
nest-cli.json feat(mana-media): add centralized media storage with NutriPhi integration 2026-02-02 17:30:14 +01:00
package.json refactor(mana-media): migrate from NestJS to Hono/Bun 2026-03-28 18:12:42 +01:00
tsconfig.json refactor(mana-media): migrate from NestJS to Hono/Bun 2026-03-28 18:12:42 +01:00