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_table('hi', Field('hello', default='world'), fake_migrate=True)
Run appadmin once, this will generate your .table files that web2py
uses to keep track of migrations.
Then remove fake_migrate, or set it to False. You will now be able to
use the table.
If you have legacy databases that have primary keys other than ``id``
you will need to use KeyedTables
-Thadeus
On Fri, Feb 26, 2010 at 2:56 PM, BrendanC <[email protected]> wrote:
> isting test db that I was using with Rails, so it conforms
> to the basic require
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en.