Migration having multiple databases #15602
Unanswered
julianCast
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hello. You are using very old devtools, if you can use Phalcon v4, please look at this migrations config |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My config.php where I keep my databases in an array 'databses'
My index.php
I have no problem with controllers because I use setConnectionService to change to the desired db in the modelBase controller.
But for migration I can't find how to indicate that my config does not have 'database' parameter, but an array instead.
phalcon migration run --migrations=migrations
The only solution that I can think of is having one config.php file per each DB.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions