-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How are we handling DB migration? #337
Comments
This is definitely a @sizzlemctwizzle thing. I don't have access to the DB and possibly won't. Migrations of the DB are handled currently by sizzle directly. It would be helpful to have something development side here on GH though. See related #233, #285 and probably some more with DB migrations/alterations needed. GM just finalized the metadata block syntax today with version 2.2. So we have a bit to catch up on although our |
I've mostly done lazy migration in the past. But when I got the namespace
|
@sizzlemctwizzle & whoever else has access to the production db.
This came up in #335. How do you want me to handle migration?
Personally, I'd prefer having a
./models/migration/
folder, with scripts called 2014-08-28.js which would connect with mongoose normally, but run operations. They'd accept the CONNECT_URI env var. These would have to be run by someone with access to the db however.Another option would be to version our schema, then run scripts automatically on server run. This'd be a pain to implement as we'd have to write an entire migration feature ourselves unless someone knows one.
Thirdly, we could lazily migrate (which is how you normally handle schemaless databases) in which each document will be updated as it's updated.
The text was updated successfully, but these errors were encountered: