• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.