The backend/src/migrate.ts migration system applies forward migrations but there are no rollback scripts. If a migration causes issues in production, there is no automated way to revert the database schema.
File: backend/src/migrate.ts, migration files
Fix: Add a down migration script for each up migration and implement a rollback command in the migration runner.
The
backend/src/migrate.tsmigration system applies forward migrations but there are no rollback scripts. If a migration causes issues in production, there is no automated way to revert the database schema.File:
backend/src/migrate.ts, migration filesFix: Add a
downmigration script for eachupmigration and implement arollbackcommand in the migration runner.