diff options
Diffstat (limited to 'migrations')
-rw-r--r-- | migrations/versions/73540b3bf183_removed_twitter_user_property.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/migrations/versions/73540b3bf183_removed_twitter_user_property.py b/migrations/versions/73540b3bf183_removed_twitter_user_property.py new file mode 100644 index 00000000..eb530a87 --- /dev/null +++ b/migrations/versions/73540b3bf183_removed_twitter_user_property.py @@ -0,0 +1,23 @@ +"""Removed Twitter user property. + +Revision ID: 73540b3bf183 +Revises: 2a5604bed382 +Create Date: 2023-07-29 16:44:57.629951 + +""" +# revision identifiers, used by Alembic. +revision = "73540b3bf183" +down_revision = "2a5604bed382" +branch_labels = None +depends_on = None + +from alembic import op +import sqlalchemy as sa + + +def upgrade(): + op.drop_column("user", "twitter") + + +def downgrade(): + op.add_column("user", sa.Column("twitter", sa.String(), default="")) |