Can anyone point me to any best practices on running database migrations in a kubernetes (or similar) environment with automated deployment?

Follow

@Floppy django model: commit migrations as files to the repo, have a database table of migrations which have been applied? Recording in db keeps that state together with the schema. Also means you have history of schema changes.

@h2g2bob yeah we’re using sequelize which has an equivalent. Wondering how to manage those in a blue/green deploy environment, but I think I’m coming up with a plan...

Sign in to participate in the conversation
Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!