Why exactly you change prefix? Installing differents apps dbs in the same db?
Richard On Fri, Nov 23, 2012 at 10:57 AM, Chr_M <chr.m...@gmail.com> wrote: > Hi, > > I am new to web2py and am migrating an application to web2py. All the > tables have a prefix that changes for the different deployments of the > application. Is there a way in web2py to have a prefix for all the tables > in the database that I can change easely for different deployments? > > At this time I use a > > PREFIX = 'prefix_' > > constant and define tables with > > db.define_table(PREFIX + 'table_name', etc... > > but this is becoming a bit complicated when defining requirements etc. > Maybe there is an easier solution? > > Thanks in advance. > > Regards, Chris > > -- > > > > --