curationexperts / cypripedium

A Hyrax 3 application for the Federal Reserve Bank of Minneapolis
2 stars 3 forks source link

Fix database schema and migration chain #577

Closed mark-dce closed 7 months ago

mark-dce commented 7 months ago

ISSUE There was a migration included in the code that was recently reverted. Additionally, the schema file had manual edits that didn't correspond to any migrations.

We want to return the schema to a clean state and ensure that the migration chain is reversible for servers that have had the reverted migration deployed.

SOLUTION Re-instantiate the unwanted migration and add an explicit migration to undo its changes. This allows us to apply the migrations to any production-like environment without having to manually rollback.

This commit also includes a 'clean' schema that removes any manual edits.