Recommended way to upgrade multiple DBs in a multi-tenant web app

164 views
Skip to first unread message

Eduardo Molteni

unread,
Apr 21, 2012, 3:42:48 PM4/21/12
to DbUp Discuss
I've always use DbUp to upgrade the DB on Application_Start() but now
I want to use it in a multi-tenant app where the DB depends on the
subdomain.

Making the check in Application_BeginRequest() since like a lot of
overhead.

What is the recommended way to do it?

Thanks!

Jake Ginnivan

unread,
Apr 23, 2012, 3:24:30 AM4/23/12
to dbup-d...@googlegroups.com
In FunnelWeb we do it in begin request, but it is behind a service which caches the result.

Because FunnelWeb came before DbUp, there may be easier ways to do this:

https://bitbucket.org/FunnelWeb/dev/src/a17206847758/src/FunnelWeb/DatabaseDeployer/DatabaseUpgradeDetector.cs

Cheers,
Jake

Reply all
Reply to author
Forward
0 new messages