fix: Migration-Fehler - meas_id Spalte in ai_insights #3

Merged
Lars merged 1 commits from develop into main 2026-03-19 08:41:13 +01:00
Owner

PROBLEM:

  • Backend crasht beim Start auf Prod
  • Migration schlägt fehl: column 'meas_id' does not exist
  • SQLite ai_insights hat Legacy-Spalte meas_id
  • PostgreSQL schema hat diese Spalte nicht mehr

FIX:

  • COLUMN_WHITELIST für ai_insights hinzugefügt
  • Nur erlaubte Spalten werden migriert:
    id, profile_id, scope, content, created
  • meas_id wird beim Import gefiltert

DATEIEN:

  • backend/migrate_to_postgres.py

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

PROBLEM: - Backend crasht beim Start auf Prod - Migration schlägt fehl: column 'meas_id' does not exist - SQLite ai_insights hat Legacy-Spalte meas_id - PostgreSQL schema hat diese Spalte nicht mehr FIX: - COLUMN_WHITELIST für ai_insights hinzugefügt - Nur erlaubte Spalten werden migriert: id, profile_id, scope, content, created - meas_id wird beim Import gefiltert DATEIEN: - backend/migrate_to_postgres.py Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Lars added 1 commit 2026-03-19 08:41:07 +01:00
fix: Migration-Fehler - meas_id Spalte in ai_insights
All checks were successful
Deploy Development / deploy (push) Successful in 55s
Build Test / lint-backend (push) Successful in 1s
Build Test / build-frontend (push) Successful in 12s
6845397866
PROBLEM:
- Backend crasht beim Start auf Prod
- Migration schlägt fehl: column 'meas_id' does not exist
- SQLite ai_insights hat Legacy-Spalte meas_id
- PostgreSQL schema hat diese Spalte nicht mehr

FIX:
- COLUMN_WHITELIST für ai_insights hinzugefügt
- Nur erlaubte Spalten werden migriert:
  id, profile_id, scope, content, created
- meas_id wird beim Import gefiltert

DATEIEN:
- backend/migrate_to_postgres.py

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Lars merged commit aaf88a6f12 into main 2026-03-19 08:41:13 +01:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Lars/mitai-jinkendo#3
No description provided.