Sqlalchemy add foreign key constraint July 8, 2019 16 32 64 128 Sqlalchemy.exc.integrityerror (mysqldb.integrityerror) (1215 'cannot add foreign key constraint') Set foreign_key_checks = on