Skip to content

Commit

Permalink
Increase login column size to account for longer usernames
Browse files Browse the repository at this point in the history
  • Loading branch information
dmtrek14 committed Sep 11, 2023
1 parent 3e623a1 commit 3583089
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions api/migrations/versions/3721dd962b84_increase_username_length.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
"""Increase username length
Revision ID: 3721dd962b84
Revises: b7cbb5c2b970
Create Date: 2023-09-11 11:18:35.529329
"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = "3721dd962b84"
down_revision = "b7cbb5c2b970"
branch_labels = None
depends_on = None


def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column("usr", "login", type_=sa.String(length=100))
# ### end Alembic commands ###


def downgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column("usr", "login", type_=sa.String(length=20))
# ### end Alembic commands ###

0 comments on commit 3583089

Please sign in to comment.