In appconfig.ini I have the following settings:

; db configuration
[db]
uri       = postgres://********:********r@localhost:5432/database_name
migrate   = False
migrate_enabled = False
pool_size = 1
lazy_tables = True
ignore_field_case = True

and in db.py:

myconf = AppConfig(reload=True)

db = DAL(myconf.take('db.uri'), pool_size=myconf.take('db.pool_size', 
cast=int), lazy_tables=myconf.take('db.lazy_tables'), 
migrate_enabled=myconf.take('db.migrate_enabled'), 
ignore_field_case=myconf.take('db.ignore_field_case'), 
check_reserved=['all'])

When I define a table:

db.define_table('vtx_label',
    Field(),
    Field(),
    ...
    on_define = set_requirement,
    migrate = 'vtx_label.table)

and click the 'Save file' icon the table is being defined in the postgres 
database, so migrate = False and
migrate_enabled = False are ignored?

Or is this my mistake?

Kind regards,

Annet

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

Reply via email to