Commit Graph

3 Commits

Author SHA1 Message Date
penghanyuan
982033974c refactor(migration): update revision identifier for backfill migration
This commit changes the revision identifier from '0020_backfill_all_missing_columns' to '0020_backfill_missing_schema' to better reflect the purpose of the migration, which focuses on backfilling missing schema elements in the database.
2026-05-17 22:11:02 +02:00
penghanyuan
6b1d63524e refactor(migration): backfill all missing columns in ORM models
This migration updates the database schema by automatically adding all missing columns from the ORM models to the existing tables. It replaces the previous specific addition of 'tts_audio_urls' with a more comprehensive approach that inspects the ORM metadata and synchronizes it with the database schema. The downgrade function has been simplified to a no-op.
2026-05-17 22:06:12 +02:00
penghanyuan
8df6e42a30 feat(migration): add tts_audio_urls column to segments and conversation_messages tables
This migration introduces the 'tts_audio_urls' column to both the 'segments' and 'conversation_messages' tables, addressing a discrepancy between the ORM model and the production database. The upgrade function checks for the existence of these columns and adds them if they are missing, while the downgrade function allows for their removal if necessary.
2026-05-17 21:38:49 +02:00