Re: [web2py] conditional models requires check if table already exists for db admin to work

2012-07-03 Thread vinicius...@gmail.com
Use this pattern below everywhere you define a table: if not 'mytable' in db.tables: db.define_table('mytable', ...) I always use it. -- Vinicius Assef On 07/03/2012 07:33 AM, selecta wrote: In my project I use conditional models since I have a lot of tables. However I have a problem si

[web2py] conditional models requires check if table already exists for db admin to work

2012-07-03 Thread selecta
In my project I use conditional models since I have a lot of tables. However I have a problem since one of the database tables (defined in a conditional model) has to be defined in another conditional model here an example /models/plugin_restapidoc/plugin_restapidoc.py /models/wizard/wizard.py /m