-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #222 from pep-dortmund/fix_login
increase size limit of password_hash
- Loading branch information
Showing
6 changed files
with
287 additions
and
232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
migrations/versions/742e6adb504c_increase_length_of_password_hash_field.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
"""Increase length of password_hash field | ||
Revision ID: 742e6adb504c | ||
Revises: 0151da823114 | ||
Create Date: 2024-01-19 12:51:21.629225 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = "742e6adb504c" | ||
down_revision = "0151da823114" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table("user", schema=None) as batch_op: | ||
batch_op.alter_column( | ||
"password_hash", | ||
existing_type=sa.VARCHAR(length=128), | ||
type_=sa.String(length=256), | ||
existing_nullable=True, | ||
) | ||
|
||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table("user", schema=None) as batch_op: | ||
batch_op.alter_column( | ||
"password_hash", | ||
existing_type=sa.String(length=256), | ||
type_=sa.VARCHAR(length=128), | ||
existing_nullable=True, | ||
) | ||
|
||
# ### end Alembic commands ### |
Oops, something went wrong.