We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Migration of multiple schemes

Hi

I'm trying to start using the dev-tool migration feature, but i have a problem since the project I'm trying to migrate has multiple schemes. So is it possible to define multiple dbnames in the ini file or load different ini files at the same time, so the generated migration files is placed the same version directory.

Thanks in advance



2.0k

Hi

Try to use:

migration generate --config=config-file-for-the-first-db --migrations=dir-for-the-first-db

and then

migration generate --config=config-file-for-the-second db --migrations=dir-for-the-secon-db