In define_table, at this point:
if migrate:
sql_locker.acquire()
try:
t._create(migrate=migrate, fake_migrate=fake_migrate)
finally:
sql_locker.release()
At the end, it can read the database schema and see if it contains all
the columns needed in the cPickle .table file. If not, it can output
something like "Sorry, database table %s needs column %s to look like
%s, this needs a manual fix".
Is this right? I'm not sure how to read a database table schema
programmatically. Is this different for each db? Hopefully it's at
least easy for postgresql.
On Nov 18 2009, 11:46 am, mdipierro <mdipie...@cs.depaul.edu> wrote:
> Yes, I would.
>
Massimo