blakeembrey / node-immigration

Simple, no-frills migration utility
Other
17 stars 3 forks source link

Separate data migrations from schema migrations #5

Closed blakeembrey closed 8 years ago

blakeembrey commented 8 years ago

Schema migrations are in the critical path and need to block reboots so new code is not accessing old database schemas. Data migrations can be run at any time without downtime. Separating the two allow deployment to go more smoothly, as well as help with implementing zero downtime deployments.

blakeembrey commented 8 years ago

Figure the best way to do this for now is just to point -d to two different directories and have two different scripts. I'll reopen if someone has a better idea.