SQL Migrations: Rewrite table creation completely.
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Sat, 24 Nov 2012 18:19:18 +0000 (19:19 +0100)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Sat, 24 Nov 2012 18:23:08 +0000 (19:23 +0100)
commit316e1dfddeb7955c3bb8a5183c53024c68184a22
treeabf456c660549fdf1731fb069a4fb7da77ddc401
parent4211d0301486d3d2439049be0a15abfbe26280dd
SQL Migrations: Rewrite table creation completely.

We have migrations creating new tables. Those currently use
"raw" table definitions. This easily gives errors (we
already had this problem).

So instead rewrite those to use declarative tables and use
those to create new tables. Just copy the new table over to
the migration, strip it down to the bare minimum, rename to
_v0, base it on declarative_base() and be done!

Do this for the current migrations.
mediagoblin/db/sql/migrations.py
mediagoblin/plugins/oauth/migrations.py