Massimo,
 
What is the exact behavior of DAL(..., migrate=False)? Does setting 
'migrate' in the DAL connection always override the 'migrate' arguments in 
the individual table definitions associated with that connection? For 
example, if you have db=DAL(..., migrate=True), will that cause migration of 
all tables, even if some of the table definitions explicitly set 
'migrate=False'? How does this work? I'd like to mention DAL(..., 
migrate=False) in the Migrations section of the book, but I want to make 
sure I describe the behavior and use cases properly.
 
Thanks.
 
Anthony

On Monday, March 28, 2011 11:17:18 AM UTC-4, Jose wrote:

> 2011/3/28 Anthony <abas...@gmail.com>:
> > On Monday, March 28, 2011 9:53:54 AM UTC-4, Jose wrote:
> >>
> >> On 28 mar, 07:13, Alexandre Strzelewicz
> >> <strzel...@gmail.com> wrote:
> >> > I have recurrent problems with auto-migration.
> >> >
> >> > Is there a way to totally disable migration on all tables ?
> >> >
> >> > Thanks
> >>
> >> db = DAL(..., migrate=False)
> >
> >
> > Cools, I didn't even know about that. Is that in the book anywhere? If 
> not,
> > I'll add it.
> >
> > Anthony 
>
> Hi Anthony 
>
> look in: 
>
> http://web2py.com/book/default/chapter/11?search=migrate%3DFalse
>
> http://www.web2py.com/examples/static/epydoc/web2py.gluon.dal.DAL-class.html 
>
> Jose
>
>  

Reply via email to