Mind that DAL should be instantiated with fake_migrate_all; run your app once, then you can set it to false. This operation will create several files (one for each defined table) in the app/databases/ directory
moreover, do you need to alter the 5 tables you mentioned? Paolo On Thursday, January 9, 2014 12:59:18 PM UTC+1, Michele Comitini wrote: > > Instantiate the DAL with fake_migrate=True, > migrate=False,migrate_enable=False > Define the tables with only the fields you are going to need in a model > file. > This is going to create the metadata needed by web2py without touching > your legacy database schema. > > > > > 2014/1/9 Tushar Tuteja <ttu...@gmail.com <javascript:>> > >> I have a J2EE application and a database which has 200 tables in it. >> I want to develop a new application using web2py, which would use only 5 >> tables. >> I want to know how should I go about it. As I am not clear about how I >> would use database without mapping all the 200 tables which is a huge task. >> and I don't want web2py to make any changes on the database tables and >> their schema. >> only crud operations on the records of the 5 tables. >> >> Thanks, >> Regards, >> Tushar Tuteja >> >> -- >> 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 web2py+un...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.