Hi,
I'm creating an application with web2py. The data storage is MySQL.
In the db.py, I define a table :
db.define_table('ligue',
Field('nom','string',requires=IS_NOT_EMPTY()),
Field('adresse','string',requires=IS_NOT_EMPTY()),
Field('ville','string',requires=IS_NOT_EMPTY()),
Field('cp','string',requires=IS_NOT_EMPTY()),
Field('tel','string',requires=IS_NOT_EMPTY()),
Field('URLSiteWeb','string'),
Field('emailContact','string')
)
The table is creating in the Mysql database : no problem.
But when I add a new field in the definition of the table (db.py) *the SQL
order to alter the mysql table is not generated*. An *Attribute error*
appends.
I have set the argument migrate to False in the define_table but it didn't
resolved the problem.
Can you help me ?
Thanks,
Maelle Taurand
--
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.