Welcome Guest, Not a member yet? Register   Sign In
Migration with multiple database
#1

Hi every one, i'm developing a web application that involves multiple database connections for each company registered.
I have one master database that have the information for logins and the company information for the connection to his database.
I want to use migration to update the structure of each database.
With the default migration class i can update the main database without problem but how can i manage the version of each database of the companies on a separate migration folder.

hope you can help me on this scenario.

Thanks
Reply
#2

(This post was last modified: 05-06-2017, 12:00 PM by natanfelles. Edit Reason: Add Migration Preferences link )

I think that you need to do the following:

1. Load your migration config
2. Change your database connection for each company
3. Change your "migration_path" config for each company folder - Look: Migration Preferences
4. Update the company database
Reply




Theme © iAndrew 2016 - Forum software by © MyBB