Created
May 7, 2015 17:31
-
-
Save theY4Kman/8963de63b07aa97f7ca8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from sqlalchemy import ForeignKeyConstraint | |
| from sqlalchemy.ext.compiler import compiles | |
| @compiles(ForeignKeyConstraint, 'mysql') | |
| def ignore_foreign_keys_for_mysql(constraint, compiler, **kw): | |
| pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment