Migrations #20
Replies: 1 comment 1 reply
-
100% agree on the need for managed migrations. The question is whether this library should own that, or have a stricter/smaller scope where a different library in the ecosystem would be used for that (see more below). To directly answer your question: not at the moment - but only because I'm a one person team, and I didn't set out to create a library. I wish I could say this is my exhaustive effort to create a theoretical masterpiece, and so things like that have been thought through with grand vision. In reality, it has been a "just in time" approach, quickly abstracted out of a codebase, based on the single premise of writing SQL and receiving pure, property structured business objects. Everything about this library is in service to that idea - yet I'm not even sure the current API is the best (or even an optimal) structure for that idea. What I am sure of, is that I've found this premise (even within the current API) to be extremely productive, and something I couldn't see myself (of my account) going back from. Chief of my mind is the current "business object" implementation. Despite being "pure" (not db-connected), it houses database info. I bring this up, because there are at least two paths:
Those are two out of lots of other paths. There is no grand plan on my part, other than the guiding principle of writing SQL and receiving pure, property structured business objects. So I am more than open to feedback and thoughts! If we go with option 2 (or in the meantime even if we go with option 1), here are two db migrations I quickly found that seem like a good fit, but haven't explored in depth https://github.com/rickbergfalk/postgrator and https://github.com/db-migrate/node-db-migrate |
Beta Was this translation helpful? Give feedback.
-
Are there any plans to implement migration functionality?
This seems to be the only thing holding back many teams from shifting to any better ORM concepts like pureORM because migrations are key to big teams and consistency of data changes.
Beta Was this translation helpful? Give feedback.
All reactions