I would add to make a backup copy of the databases folder under your app.
then delete the databases folder content, put db(...., fake_migrate_all=True)
python web2py.py -M -S <your app> [you can exit from the python shell then]
If you keep having troubles you must have some problem in the table
related to foreign keys, see:
https://dev.mysql.com/doc/refman/5.5/en/innodb-foreign-key-constraints.html
"""If MySQL reports an error number 1005 from a CREATE TABLE
statement, and the error message refers to error 150, table creation
failed because a foreign key constraint was not correctly formed.
Similarly, if an ALTER TABLE fails and it refers to error 150, that
means a foreign key definition would be incorrectly formed for the
altered table. To display a detailed explanation of the most recent
InnoDB foreign key error in the server, issue SHOW ENGINE INNODB
STATUS.
Important"""
mic
2012/5/8 Johann Spies <
johann...@gmail.com>: