defenseunicorns / leapfrogai

Production-ready Generative AI for local, cloud native, airgap, and edge deployments.
https://leapfrog.ai
Apache License 2.0
242 stars 25 forks source link

Supabase - Migration version control #486

Open CollectiveUnicorn opened 1 month ago

CollectiveUnicorn commented 1 month ago

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:

CollectiveUnicorn commented 1 month ago

Consider that other environments may already have a schema deployed with data in it prior to this issue.

gphorvath commented 1 month ago

@CollectiveUnicorn here is another:

https://github.com/sqitchers/sqitch

gphorvath commented 1 week ago

https://www.liquibase.com/