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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user