Skip to content

Commit

Permalink
Merge pull request #52 from tom0827/EPICSYSTEM-67
Browse files Browse the repository at this point in the history
EPICSYSTEM-67: document widget title length
  • Loading branch information
tom0827 authored May 27, 2024
2 parents ab29137 + 84d5d28 commit 0cba603
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
"""alter title length to max 200 characters
Revision ID: 9a93fda677eb
Revises: 25e6609cb4db
Create Date: 2024-05-24 14:41:49.995265
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql

# revision identifiers, used by Alembic.
revision = '9a93fda677eb'
down_revision = '25e6609cb4db'
branch_labels = None
depends_on = None


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column('widget_documents', 'title',
existing_type=sa.String(length=50),
type_=sa.String(length=200))
# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column('widget_documents', 'title',
existing_type=sa.String(length=200),
type_=sa.String(length=50))
# ### end Alembic commands ###
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { updatedDiff } from 'deep-object-diff';

const schema = yup
.object({
name: yup.string().max(50, 'Document name should not exceed 50 characters').required(),
name: yup.string().max(200, 'Document name should not exceed 200 characters').required(),
link: yup.string().max(2000, 'URL should not exceed 2000 characters').required(),
folderId: yup.number(),
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { If, Then, Else } from 'react-if';

const schema = yup
.object({
name: yup.string().max(50, 'Document name should not exceed 50 characters').required(),
name: yup.string().max(200, 'Document name should not exceed 200 characters').required(),
folderId: yup.number(),
})
.required();
Expand Down

0 comments on commit 0cba603

Please sign in to comment.