[web2py] Re: legacy database : extract database models

2018-06-01 Thread 黄祥
not sure if this correlated with error traceback: auth.define_tables(...) perhaps should comment auth.define_tables() when using legacy table but for the extract_sqlite_models.py will have an empty result (no table fields defined for all of the tables), solution for now is to use the

[web2py] Re: legacy database : extract database models

2018-06-01 Thread Massimo Di Pierro
If the table exists than: legacy_db = DAL('sqlite://mutualfunds.sqlite', migrate_enabled = True, fake_migrate_all = True) will create the metadata. if both table and metadata exist than: legacy_db = DAL('sqlite://mutualfunds.sqlite', migrate_enabled = False) should successfully connect if