-
-
Save ThiefMaster/73c07f76d3f8e4d199ad049e7f2b8ced to your computer and use it in GitHub Desktop.
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
def upgrade(): | |
op.execute(''' | |
ALTER TABLE events.logs | |
ALTER COLUMN "data" TYPE jsonb USING replace("data"::text, '\\u0000', '')::jsonb; | |
''') | |
def downgrade(): | |
op.execute(''' | |
ALTER TABLE events.logs | |
ALTER COLUMN "data" TYPE json; | |
''') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment