Hi andre,
Let me explain how do i, solve that problem. I have a scriptcase software, with multi company/users, every company use the same software in my server, that software connects to the company database that is located in other server, so each client has different database to store their information. I need to update all that databases automatically, this is how i solve that.
[SIZE=5]Example to update database automatically[/SIZE]
First you need a central database, to store all SQL sentences of changes. And in your client database you need table to store the current client version.
- User login using their account
- Software check the current client patch version vs the central id_patch version
Lets suppose that the current client version is 2 and the central version is 3 like in the example.
3.Then you need to execute all the sql sentence of central starting from id_patch> current client version
3.1 and Finally update the client version to the latest version
and redirect to welcome app
- Welcome app.
With multiple databases, you can save a lot of time. The same user when logins update their database to the current version.