News for hackers. Stuff that matters.
Re:Kamal Proxy – A minimal HTTP proxy for zero-downtime depl... by stephenr on Saturday September 21, 2024 @09:43AM (#41609927)
Very much so, we handle these very differently for $client.

Schema migrations are versioned in git with the app, with up/down (or forward/reverse) migration scripts and are applied automatically during deployment of the associated code change to a given environment.

SQL Data migrations are stored in git so we have a record but are never applied automatically, always manually.

The other thing we've used along these lines, is having one or more low priority job(s) added to a queue, to apply some kind of change to records. These are essentially still data migrations, but they're written as part of the application code base (as a Job) rather than in SQL.

There are no comments on this comment yet.