From 7642316945b781b3f76fc87c903874052b6bdc7b Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Tue, 26 Mar 2019 15:05:47 +0000 Subject: Add email confirmation field --- .../e58a3596b899_add_email_confirmation_field.py | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 migrations/versions/e58a3596b899_add_email_confirmation_field.py (limited to 'migrations') diff --git a/migrations/versions/e58a3596b899_add_email_confirmation_field.py b/migrations/versions/e58a3596b899_add_email_confirmation_field.py new file mode 100644 index 0000000..215a1f4 --- /dev/null +++ b/migrations/versions/e58a3596b899_add_email_confirmation_field.py @@ -0,0 +1,28 @@ +"""add email confirmation field + +Revision ID: e58a3596b899 +Revises: 878e8193ae4d +Create Date: 2019-03-26 15:05:01.522435 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = 'e58a3596b899' +down_revision = '878e8193ae4d' +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.add_column('user', sa.Column('is_confirmed', sa.Boolean(), nullable=True)) + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.drop_column('user', 'is_confirmed') + # ### end Alembic commands ### -- cgit v1.2.3