Describe what should be investigated or refactored
Investigate postgres migration version control tools and set it up for our Supabase migrations.
Additional context
Our migrations currently run every time the Postgres container starts up. To prevent the need for being extremely cautious when writing migrations we should be using some version control that will keep track of what migrations have already been applied to the database and only run newly added migrations.
Examples of some solutions:
Supabase CLI
Ensure that this actually does version control (stores and reconciles previously run migrations) and doesn't just run the entire suite of migrations every time.
Describe what should be investigated or refactored
Investigate postgres migration version control tools and set it up for our Supabase migrations.
Additional context
Our migrations currently run every time the Postgres container starts up. To prevent the need for being extremely cautious when writing migrations we should be using some version control that will keep track of what migrations have already been applied to the database and only run newly added migrations.
Examples of some solutions: