no, unless you do a backup of your files, set fake_migrate=True and check 
sql.log.

On Thursday, November 7, 2013 8:36:47 AM UTC+1, Jayadevan M wrote:
>
> OK, so I got it wrong. 
> I see the actual SQLs and execution output in sql.log. The SQLs which are 
> 'about to be executed' to get the instance in sync with the definitions in 
> tables.py/db.py etc, can I see them somewhere?
>  
>
>
> On Thu, Nov 7, 2013 at 12:52 PM, Niphlod <[email protected] 
> <javascript:>>wrote:
>
>> they are created after altering the tables on the underlying instance, so 
>> if any error is found (i.e. the migration is rolled back) they stay the 
>> same.
>>
>>
>> On Thursday, November 7, 2013 3:40:53 AM UTC+1, Jayadevan M wrote:
>>
>>> Thanks. These files get created by web2py *after* it compares the 
>>> objects declared under models  with the objects in the database?
>>>
>>>
>>> On Wed, Nov 6, 2013 at 10:01 PM, Niphlod <[email protected]> wrote:
>>>
>>>> import pickle
>>>> table_file = 'applications/theapp/**databases/thetablefile.table'
>>>> print pickle.load(open(table_file))
>>>>
>>>> it's just a dict holding a key for each field, with as value another 
>>>> dict of attributes of that field.
>>>>
>>>>  -- 
>>>> Resources:
>>>> - http://web2py.com
>>>> - http://web2py.com/book (Documentation)
>>>> - http://github.com/web2py/**web2py 
>>>> <http://github.com/web2py/web2py>(Source code)
>>>> - 
>>>> https://code.google.com/p/**web2py/issues/list<https://code.google.com/p/web2py/issues/list>(Report
>>>>  Issues)
>>>> --- 
>>>> You received this message because you are subscribed to a topic in the 
>>>> Google Groups "web2py-users" group.
>>>> To unsubscribe from this topic, visit https://groups.google.com/d/**
>>>> topic/web2py/bXSfSywF4q8/**unsubscribe<https://groups.google.com/d/topic/web2py/bXSfSywF4q8/unsubscribe>
>>>> .
>>>> To unsubscribe from this group and all its topics, send an email to 
>>>> web2py+un...@**googlegroups.com.
>>>>
>>>> For more options, visit 
>>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>>> .
>>>>
>>>
>>>  -- 
>> 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 a topic in the 
>> Google Groups "web2py-users" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/web2py/bXSfSywF4q8/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to