From dc92297963515ea7488cf316fd781ae13f1dc816 Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Mon, 20 Jun 2022 10:33:53 -0400 Subject: [PATCH] password attempts field. new file: remarkbox/scripts/alembic/versions/8f76e372a953_password_attempts_field.py --- .../8f76e372a953_password_attempts_field.py | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 remarkbox/scripts/alembic/versions/8f76e372a953_password_attempts_field.py diff --git a/remarkbox/scripts/alembic/versions/8f76e372a953_password_attempts_field.py b/remarkbox/scripts/alembic/versions/8f76e372a953_password_attempts_field.py new file mode 100644 index 0000000..a038679 --- /dev/null +++ b/remarkbox/scripts/alembic/versions/8f76e372a953_password_attempts_field.py @@ -0,0 +1,28 @@ +"""password attempts field + +Revision ID: 8f76e372a953 +Revises: b132ec968f0c +Create Date: 2022-06-20 10:31:36.219490 + +""" + +# revision identifiers, used by Alembic. +revision = '8f76e372a953' +down_revision = 'b132ec968f0c' +branch_labels = None +depends_on = None + +from alembic import op +import sqlalchemy as sa + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.add_column('rb_user', sa.Column('password_attempts', sa.INTEGER(), nullable=False, server_default="0")) + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.drop_column('rb_user', 'password_attempts') + # ### end Alembic commands ###