As long as it has a primary key of id then you are good.
The first thing you will need to do is fake_migrate=True so web2py
will generate the .table files.
So define you db.define_table statements exactly like your existing database.
make sure to pass fake_migrate=True to these tables
db.define
I have an existing test db that I was using with Rails, so it conforms
to the basic requirements re PK ID's etc. Can I use this in web2py
without re coding the table defs etc. What is the best way to do this?
I assume this comes up a lot, but I don't see this mentioned in the
docs.
TIA,
Brendan
2 matches
Mail list logo