someone looked into this, tried some time back ... emulating the kinds of
things that sqlalchamy does;  I think he had limited success; not sure I
recall what the summary was.

On Tue, May 5, 2009 at 2:50 PM, Hans <johann.scheibelho...@easytouch-edv.com
> wrote:

>
> Symlinking the app/database folder would work in environments with up
> to one application server.
>
> Unfortunately also I don't know how to query the database table
> structure in all web2py supported databases. But, maybe, we have some
> experts for one or the other supported database on the forum and
> willing to contribute!?
>
> On May 5, 9:14 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
> > 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 <johann.scheibelho...@easytouch-edv.com>
> > 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 <mdipie...@cs.depaul.edu> wrote:
> >
> > > > Yes or perhaps a repair.py script.
> >
> > > > Massimo
> >
> > > > On May 5, 10:24 am, Yarko Tymciurak <yark...@gmail.com> wrote:
> >
> > > > > On Tue, May 5, 2009 at 9:25 AM, mdipierro <mdipie...@cs.depaul.edu>
> 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 web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to