Skip to content

Commit

Permalink
Merge pull request #2396 from shuhaib-aot/Bugifx/lengthy-form-name-is…
Browse files Browse the repository at this point in the history
…sue-fixed

changed process name and key lenght into 200 in mapper
  • Loading branch information
arun-s-aot authored Dec 3, 2024
2 parents 8c35ce2 + b86d899 commit 75f8da0
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 2 deletions.
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 ###
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ class FormProcessMapper(
form_name = db.Column(db.String(200), nullable=False)
form_type = db.Column(db.String(20), nullable=False)
parent_form_id = db.Column(db.String(50), nullable=False)
process_key = db.Column(db.String(50), nullable=True, default=DEFAULT_PROCESS_KEY)
process_key = db.Column(db.String(200), nullable=True, default=DEFAULT_PROCESS_KEY)
process_name = db.Column(
db.String(100), nullable=True, default=DEFAULT_PROCESS_NAME
db.String(200), nullable=True, default=DEFAULT_PROCESS_NAME
)
status = db.Column(db.String(10), nullable=True)
comments = db.Column(db.String(300), nullable=True)
Expand Down

0 comments on commit 75f8da0

Please sign in to comment.