Created
August 30, 2018 12:07
-
-
Save cnicodeme/a06058114985638a975c08904fc968c0 to your computer and use it in GitHub Desktop.
Migration script to do raw SQL requests
This file contains 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
# Add this import: | |
from sqlalchemy.sql import text | |
def upgrade(): | |
# ... | |
conn = op.get_bind() | |
conn.execute(text('UPDATE ...')) | |
# ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment