aboutsummaryrefslogtreecommitdiff
path: root/migrations/versions/ac35c979311a_removed_activation_key_from_the_user_.py
diff options
context:
space:
mode:
Diffstat (limited to 'migrations/versions/ac35c979311a_removed_activation_key_from_the_user_.py')
-rw-r--r--migrations/versions/ac35c979311a_removed_activation_key_from_the_user_.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/migrations/versions/ac35c979311a_removed_activation_key_from_the_user_.py b/migrations/versions/ac35c979311a_removed_activation_key_from_the_user_.py
index 446f9d2f..644720b2 100644
--- a/migrations/versions/ac35c979311a_removed_activation_key_from_the_user_.py
+++ b/migrations/versions/ac35c979311a_removed_activation_key_from_the_user_.py
@@ -7,8 +7,8 @@ Create Date: 2016-02-18 08:54:43.786641
"""
# revision identifiers, used by Alembic.
-revision = 'ac35c979311a'
-down_revision = '661199d8768a'
+revision = "ac35c979311a"
+down_revision = "661199d8768a"
branch_labels = None
depends_on = None
@@ -17,11 +17,12 @@ import sqlalchemy as sa
def upgrade():
- op.drop_column('user', 'activation_key')
- op.add_column('user', sa.Column('enabled', sa.Boolean(), default=False))
+ op.drop_column("user", "activation_key")
+ op.add_column("user", sa.Column("enabled", sa.Boolean(), default=False))
def downgrade():
- op.drop_column('user', 'enabled')
- op.add_column('user', sa.Column('activation_key', sa.String(),
- nullable=False, default=''))
+ op.drop_column("user", "enabled")
+ op.add_column(
+ "user", sa.Column("activation_key", sa.String(), nullable=False, default="")
+ )
bgstack15