[sqlalchemy] add foreign key constraint

2013-11-14 Thread jonas geiregat
I have a table called session which has foreign key constraints. I removed them and auto generated a migration script. The upgrade function is populated as expected but the downgrade function isn't. I searched through the available operations but can't find what i need. The create_foreign_key

Re: [sqlalchemy] add foreign key constraint

2013-11-14 Thread jonas geiregat
( 'session_server_fkey', 'session', 'server', ['server'], ['id']) op.create_foreign_key( 'session_app_fkey', 'session', 'app', ['server'], ['id']) On Thursday, November 14, 2013 11:40:43 AM UTC+1, Simon King wrote: On Thu, Nov 14, 2013 at 8:47 AM, jonas geiregat geireg