Hi,
I am having difficulties with table migration on GAE.
I deployed perfectly in the Google App Engine and everything is working
fine.
I then needed to make some change in the auth_user adding some extra field
but when I deploy again the new version, the migration doesn't occur and
the new column is not created.
Here is the code used:
db = DAL('google:sql://[app-name]:[db-name]/[table-name]',
migrate_enabled=True, check_reserved=['all'], lazy_tables=True)
then below:
auth.settings.extra_fields['auth_user'] = [Field('username_fb', length=128,
default="", unique=True, writable=False, readable=False)]
auth.define_tables(username=False, signature=False, migrate=True)
Any idea why the migration doesn't occur?
Is there a way to force web2py to do migration somehow?
Thanks for the help!
Best,
Sebastian
--
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/d/optout.