diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-10 10:34:00 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-10 10:34:00 +0100 |
commit | 677304ba3ecbd204fa2726e6820de84ad09bd868 (patch) | |
tree | bd19fbf2f1a0cddad1980fe15cf4c228867c5d69 /migrations/versions/2c5cc05216fa_adding_tag_handling_capacities.py | |
parent | Updated README. (diff) | |
download | newspipe-677304ba3ecbd204fa2726e6820de84ad09bd868.tar.gz newspipe-677304ba3ecbd204fa2726e6820de84ad09bd868.tar.bz2 newspipe-677304ba3ecbd204fa2726e6820de84ad09bd868.zip |
Added a tiny portion of black magic.
Diffstat (limited to 'migrations/versions/2c5cc05216fa_adding_tag_handling_capacities.py')
-rw-r--r-- | migrations/versions/2c5cc05216fa_adding_tag_handling_capacities.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/migrations/versions/2c5cc05216fa_adding_tag_handling_capacities.py b/migrations/versions/2c5cc05216fa_adding_tag_handling_capacities.py index f9559fe3..299cca08 100644 --- a/migrations/versions/2c5cc05216fa_adding_tag_handling_capacities.py +++ b/migrations/versions/2c5cc05216fa_adding_tag_handling_capacities.py @@ -7,8 +7,8 @@ Create Date: 2016-11-08 07:41:13.923531 """ # revision identifiers, used by Alembic. -revision = '2c5cc05216fa' -down_revision = 'be2b8b6f33dd' +revision = "2c5cc05216fa" +down_revision = "be2b8b6f33dd" branch_labels = None depends_on = None @@ -17,14 +17,14 @@ import sqlalchemy as sa def upgrade(): - op.create_table('tag', - sa.Column('text', sa.String(), nullable=False), - sa.Column('article_id', sa.Integer(), nullable=False), - sa.ForeignKeyConstraint(['article_id'], ['article.id'], - ondelete='CASCADE'), - sa.PrimaryKeyConstraint('text', 'article_id') + op.create_table( + "tag", + sa.Column("text", sa.String(), nullable=False), + sa.Column("article_id", sa.Integer(), nullable=False), + sa.ForeignKeyConstraint(["article_id"], ["article.id"], ondelete="CASCADE"), + sa.PrimaryKeyConstraint("text", "article_id"), ) def downgrade(): - op.drop_table('tag') + op.drop_table("tag") |