3 ms·
btw. it's also bad to drop a column if you have multiple people in a team when they switch between branches. it's always a headache, so the best thing is to del
by merb 3y ago
btw. it's also bad to drop a column if you have multiple people in a team when they switch between branches.
it's always a headache, so the best thing is to delay dropping/deleting.
renaming stuff with that gets a little bit tricky, but you can workaround that with database triggers if you really need to rename things.
- ljm 3y agoThe problem I've seen a lot, particularly with Rails, is when migrations generate a schema dump after running them, which can get really messy if people blindly commit the diff or if you rely on running several years of migrations in your local environment from scratch (many of which may have been edited or removed if they directly referenced application code). Given the migrations are executed through a DSL and the dump is just a structural snapshot of the DB at the end of the run, they're not quite as reproducible as plain SQL migrations. You just end up with weird, unpredictable DB states that don't reflect production at all. Especially when you're dealing with old versions of MySQL and the character encoding and collation are all over the place.