Thank you again - I did not put that together after the first email. I 
realize now that I should have realized what you were saying would solve my 
problem.

Really appreciate your help.

Tom

On Monday, January 19, 2015 at 11:32:15 PM UTC-8, Niphlod wrote:
>
>
>
> On Monday, January 19, 2015 at 6:23:24 PM UTC+1, Tom Stratton wrote:
>>
>> Hi - Thanks for the response.
>>
>> I did find the documentation and set migrate=False and was able to get it 
>> working.
>>
>> However, the follow up question is, what to do if I do want to change the 
>> tables? EG: What if I want to add a new field.
>>
>
> I'll quote myself
>
>
> *The "grey" consinst in you defining a model for all existing tables (i.e. 
> migrating an app TO web2py, with a yet-existing database) and start "fresh" 
> by setting migrate=True and fake_migrate_all=True, with the latter turned 
> on just for a single request. In that single request, web2py will re-create 
> .table files from your current model. Later on, when you'll alter that 
> definition, it'll keep your database tables in sync with your model. *
>
>
>>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to