I'm trying to use a legacy sqlite db in web2py. I cannot change the schema as the db is currently in use by a couple other apps.
My problem is that the db tables have requires that look like this: TableC requires TableB, TableB requires TableA, TableA requires Table C.
So, of course I get an error when the table required isn't defined yet. I thought I would try defining a portion of TableC first, then adding the other columns by altering the table later in the db.py. Would this work? If so, how do I alter the table in the db.py code?
Does anyone have other ideas that might work?