aboutsummaryrefslogtreecommitdiff
path: root/migrations/versions/fa10b0bdd045_add_bio_column_to_user_table.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2020-03-10 10:34:00 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2020-03-10 10:34:00 +0100
commit677304ba3ecbd204fa2726e6820de84ad09bd868 (patch)
treebd19fbf2f1a0cddad1980fe15cf4c228867c5d69 /migrations/versions/fa10b0bdd045_add_bio_column_to_user_table.py
parentUpdated README. (diff)
downloadnewspipe-677304ba3ecbd204fa2726e6820de84ad09bd868.tar.gz
newspipe-677304ba3ecbd204fa2726e6820de84ad09bd868.tar.bz2
newspipe-677304ba3ecbd204fa2726e6820de84ad09bd868.zip
Added a tiny portion of black magic.
Diffstat (limited to 'migrations/versions/fa10b0bdd045_add_bio_column_to_user_table.py')
-rw-r--r--migrations/versions/fa10b0bdd045_add_bio_column_to_user_table.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/migrations/versions/fa10b0bdd045_add_bio_column_to_user_table.py b/migrations/versions/fa10b0bdd045_add_bio_column_to_user_table.py
index 2d839626..80ee71fc 100644
--- a/migrations/versions/fa10b0bdd045_add_bio_column_to_user_table.py
+++ b/migrations/versions/fa10b0bdd045_add_bio_column_to_user_table.py
@@ -7,8 +7,8 @@ Create Date: 2016-10-07 10:43:04.428178
"""
# revision identifiers, used by Alembic.
-revision = 'fa10b0bdd045'
-down_revision = '8bf5694c0b9e'
+revision = "fa10b0bdd045"
+down_revision = "8bf5694c0b9e"
branch_labels = None
depends_on = None
@@ -17,9 +17,8 @@ import sqlalchemy as sa
def upgrade():
- op.add_column('user', sa.Column('bio',
- sa.String(5000), default=""))
+ op.add_column("user", sa.Column("bio", sa.String(5000), default=""))
def downgrade():
- op.drop_column('user', 'bio')
+ op.drop_column("user", "bio")
bgstack15