aboutsummaryrefslogtreecommitdiff
path: root/migrations
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-02-18 08:59:13 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-02-18 08:59:13 +0100
commit2e5a241777ef0bb0d76420d39bf3be41e16e042a (patch)
tree3223b8fba4fa244fa97b0df0b8bf8c5b91aeffec /migrations
parentCheck if the id of the category is '0'. (diff)
downloadnewspipe-2e5a241777ef0bb0d76420d39bf3be41e16e042a.tar.gz
newspipe-2e5a241777ef0bb0d76420d39bf3be41e16e042a.tar.bz2
newspipe-2e5a241777ef0bb0d76420d39bf3be41e16e042a.zip
New management of the token for the account confirmation.
Diffstat (limited to 'migrations')
-rw-r--r--migrations/versions/ac35c979311a_removed_activation_key_from_the_user_.py28
1 files changed, 28 insertions, 0 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
new file mode 100644
index 00000000..deeb6037
--- /dev/null
+++ b/migrations/versions/ac35c979311a_removed_activation_key_from_the_user_.py
@@ -0,0 +1,28 @@
+"""removed activation_key from the user table and add enabled column
+
+Revision ID: ac35c979311a
+Revises: 661199d8768a
+Create Date: 2016-02-18 08:54:43.786641
+
+"""
+
+# revision identifiers, used by Alembic.
+revision = 'ac35c979311a'
+down_revision = '661199d8768a'
+branch_labels = None
+depends_on = None
+
+from alembic import op
+import sqlalchemy as sa
+
+
+def upgrade():
+ op.drop_column('user', 'activation_key')
+ op.add_column('user', sa.Column('enabled', sa.Boolean(), nullable=False,
+ default=False))
+
+
+def downgrade():
+ op.drop_column('user', 'enabled')
+ op.add_column('user', sa.Column('activation_key', sa.String(),
+ nullable=False, default=''))
bgstack15