fix(ops): tools-image kopierar infrastructure/migrations sa db:migrate hittar journalen

- Dockerfile.tools: COPY infrastructure/migrations (migrate.ts laste /build/infrastructure/migrations men mappen saknades -> 'Cant find meta/_journal.json').
- RUNBOOK: nollstall anvandare med DELETE FROM users (respekterar creator_user_id ON DELETE SET NULL), aldrig TRUNCATE CASCADE.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Claude
2026-08-22 21:24:37 +00:00
parent d29c18e2bc
commit d3f93a6f46
2 changed files with 12 additions and 0 deletions
+2
View File
@@ -16,6 +16,8 @@ COPY package.json pnpm-workspace.yaml pnpm-lock.yaml .npmrc ./
COPY tsconfig.base.json turbo.json ./
COPY brand.config.json ./
COPY packages ./packages
# migrate.ts läser migreringsfilerna (meta/_journal.json + .sql) härifrån
COPY infrastructure/migrations ./infrastructure/migrations
# Installera @app/database + dess beroende-closure (drizzle-orm, pg, nutrition-engine,
# analytics, shared-types). Faller tillbaka till icke-frozen om lockfile-koll klagar