I agree and it does not have to me. The current system does not limit
that. It only limits the fact that one app should do migrations. If
more than one app may do migrations just symlink the database folder.

Massimo

On May 5, 2:09 pm, Hans <[email protected]>
wrote:
> IMO one more thing to consider is that a database is not necessarily
> exclusively owned by one application. I would even go further and say
> default should be a database is NOT exclusively owned by one app and
> also not by one framework.
>
> Currently the problem arises if the .table files of one web2py app
> (stored in app/database folder) get out of sync with the database.
> To get the .table files of a web2py app out of sync with a central
> database is easy. Just have a 2nd app create a table which is also
> used by app #1. If app #1 does not set 'migrate=False', including
> auth.define_table(migrate=False), this app will not work any more.
> Same for app #3, #4, ... Those apps can also be non web2py apps which
> automatically create non existing tables, like web2py does it by
> default.
>
> my 2 eurocents
>
> Hans
>
> I understand that throwing the default assumption 'the application
> owns the database tab
> On May 5, 6:13 pm, mdipierro <[email protected]> wrote:
>
> > Yes or perhaps a repair.py script.
>
> > Massimo
>
> > On May 5, 10:24 am, Yarko Tymciurak <[email protected]> wrote:
>
> > > On Tue, May 5, 2009 at 9:25 AM, mdipierro <[email protected]> wrote:
>
> > > ....
>
> > > > The only problems I can see would arise if:
> > > > - You delete databases/*.table but the database is still there
> > > > (updates do not cause this). Bad luck. One should not delete files, or
> > > > at least make a backup.
>
> > > Maybe at some point we can address this w/ some mercurial checkin of such
> > > important files on a running system...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to