diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2023-07-29 17:06:30 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2023-07-29 17:06:30 +0200 |
commit | d3250e0f504d651280cfbd19626f86c97ae6385a (patch) | |
tree | c86026c997a4fa961197d4594a0d3e77525f1f23 /migrations/versions | |
parent | Updated JavaScript dependencies. (diff) | |
download | newspipe-d3250e0f504d651280cfbd19626f86c97ae6385a.tar.gz newspipe-d3250e0f504d651280cfbd19626f86c97ae6385a.tar.bz2 newspipe-d3250e0f504d651280cfbd19626f86c97ae6385a.zip |
Removed twitter field for users.
Diffstat (limited to 'migrations/versions')
-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="")) |