I have a database which i recently updated by adding a new table called 
*tlamelo*, the new table is referenced in one of the old tables called 
*company, 
*when i try to save data into the table *company* i get the error bellow 
*(table 
company has no column named tlamelo)!* I do not understand why i am getting 
this error, i am not sure if it has anything to do with the 
fake_migrate=True
or not! Can anyone please help me, thank you.

<class 'sqlite3.OperationalError'> table company has no column named tlamelo

This is the code for my table tlamelo
db.define_table('tlamelo',
                Field('leina_la_tlamelo', requires=IS_NOT_EMPTY()),
                format='%(leina_la_tlamelo)s', migrate=False, fake_migrate=
True)

This is the code for my table company
db.define_table('company',
                Field('logo', 'upload'),
                Field('company_name', requires=IS_NOT_EMPTY()),
                Field('services', 'reference services'),
                Field('tlamelo', 'reference tlamelo'), #tlamelo is 
referenced here
                Field('product', 'reference product'),
                Field('tel', requires=IS_NOT_EMPTY()),
                Field('email', requires=IS_NOT_EMPTY()),
                Field('fax', requires=IS_NOT_EMPTY()),
                Field('cell', requires=IS_NOT_EMPTY()),
                Field('facebook', requires=IS_NOT_EMPTY()),
                Field('twitter', requires=IS_NOT_EMPTY()),
                Field('website', requires=IS_NOT_EMPTY()),
                Field('postal_address', requires=IS_NOT_EMPTY()),
                Field('located_at', requires=IS_NOT_EMPTY()), migrate=False, 
fake_migrate=True)


-- 
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