On 21.3.2011 5:46, LarryEitel wrote:
Getting: InternalError: (1050, u"Table 'b' already exists")
How can I get past this? Yes, the table exists. I suppose I can turn
off migration testing.
Anyway to update logs, .table files etc to conform to existing tables?
Thank you :)
Is it so that you have a existing table and have written a suitable
model for it?
The reason it doesn´t work is that web2py has it´s own mechanism to
control which tables exists. It takes care of everything that comes to
tables, creating, updating, deleting.
When you now have created the table outside web2py and web2py checks it
own list of tables it doesn´t exist and web2py tries to create it and fails.
If you extract the data, drop the table, let web2py create the table and
then import the data everything should work.
Kenneth