Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
We use migra to generate migration DDL, manually modify it as needed (it tends to be overeager to drop and create tables), use migra again to ensure old DDL + migration DDL == new DDL, attach the migration DDL to the PR, and manually run it after the PR's been reviewed and merged. I wouldn't say I love our process, but I like the simplicity and it hasn't been a pain point.
We use dbmate to create and run migrations upon code deployment. Each migration file is saved with a timestamp, so it's not too difficult to go back in time and see what was changed when.
Related posts
- I greatly dislike ORMs, but I find myself wanting ORM agnostic SQL migration tools. What do you use to perform RDBMS table migrations outside of an ORM?
- Database version control: how do you do it at your company?
- Maybe a dumb question ... but is there a default schema migration tool? for postgresql?
- Production-ready backend with dbmate, PugSQL, PropelAuth, and FastAPI
- What sql migration tool do you use?