-
Notifications
You must be signed in to change notification settings - Fork 195
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 #2396 from shuhaib-aot/Bugifx/lengthy-form-name-is…
…sue-fixed changed process name and key lenght into 200 in mapper
- Loading branch information
Showing
2 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
forms-flow-api/migrations/versions/6fc8e5beebe4_title_length_changed.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,46 @@ | ||
"""title length changed | ||
Revision ID: 6fc8e5beebe4 | ||
Revises: 2dbcca4a4c28 | ||
Create Date: 2024-12-03 15:06:02.156816 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '6fc8e5beebe4' | ||
down_revision = '2dbcca4a4c28' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.alter_column('form_process_mapper', 'process_key', | ||
existing_type=sa.VARCHAR(length=50), | ||
type_=sa.String(length=200), | ||
existing_nullable=True, | ||
existing_server_default=sa.text("'Defaultflow'::character varying")) | ||
op.alter_column('form_process_mapper', 'process_name', | ||
existing_type=sa.VARCHAR(length=100), | ||
type_=sa.String(length=200), | ||
existing_nullable=True, | ||
existing_server_default=sa.text("'Default Flow'::character varying")) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.alter_column('form_process_mapper', 'process_name', | ||
existing_type=sa.String(length=200), | ||
type_=sa.VARCHAR(length=100), | ||
existing_nullable=True, | ||
existing_server_default=sa.text("'Default Flow'::character varying")) | ||
op.alter_column('form_process_mapper', 'process_key', | ||
existing_type=sa.String(length=200), | ||
type_=sa.VARCHAR(length=50), | ||
existing_nullable=True, | ||
existing_server_default=sa.text("'Defaultflow'::character varying")) | ||
# ### end Alembic commands ### |
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