diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-03-26 15:05:47 +0000 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-03-26 15:05:47 +0000 |
| commit | 7642316945b781b3f76fc87c903874052b6bdc7b (patch) | |
| tree | da0c54f131522bf0fad6f902a4baecaa46681353 /migrations | |
| parent | Use gmail address as admin (diff) | |
| download | AnnotateChange-7642316945b781b3f76fc87c903874052b6bdc7b.tar.gz AnnotateChange-7642316945b781b3f76fc87c903874052b6bdc7b.zip | |
Add email confirmation field
Diffstat (limited to 'migrations')
| -rw-r--r-- | migrations/versions/e58a3596b899_add_email_confirmation_field.py | 28 |
1 files changed, 28 insertions, 0 deletions
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 ### |
