-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gh-806: Increase candidate name length to 250
this fixes #806
- Loading branch information
1 parent
62391ae
commit 09db6d5
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
results-tabulation-api/migrations/versions/30d245f39754_.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,30 @@ | ||
"""empty message | ||
Revision ID: 30d245f39754 | ||
Revises: dc4dc715ee10 | ||
Create Date: 2020-08-05 21:32:53.743938 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
from sqlalchemy.dialects import mysql | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '30d245f39754' | ||
down_revision = 'dc4dc715ee10' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
op.alter_column('candidate', 'candidateName', | ||
existing_type=mysql.VARCHAR(collation='utf8mb4_unicode_ci', length=100), | ||
type_=sa.String(length=250), | ||
existing_nullable=False) | ||
|
||
|
||
def downgrade(): | ||
op.alter_column('candidate', 'candidateName', | ||
existing_type=sa.String(length=250), | ||
type_=mysql.VARCHAR(collation='utf8mb4_unicode_ci', length=100), | ||
existing_nullable=False) |
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