Skip to content

Commit b20b7e6

Browse files
committed
improve: increase a length of series comment to 1024 characters.
1 parent 92d9940 commit b20b7e6

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

src/main/java/ru/mystamps/web/feature/series/SeriesDb.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
final class SeriesDb {
2222

2323
static final class Series {
24-
static final int COMMENT_LENGTH = 255;
24+
static final int COMMENT_LENGTH = 1024;
2525
}
2626

2727
}

src/main/resources/liquibase/version/0.4.5.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
66
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd">
77

8-
8+
<include file="0.4.5/2020-08-21--series_comment_length.xml" relativeToChangelogFile="true" />
99

1010
</databaseChangeLog>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<databaseChangeLog
3+
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
6+
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd">
7+
8+
<changeSet id="increase-length-of-series-comment-field" author="php-coder" context="scheme">
9+
10+
<modifyDataType tableName="series"
11+
columnName="comment"
12+
newDataType="VARCHAR(1024)" />
13+
14+
</changeSet>
15+
16+
</databaseChangeLog>

src/test/robotframework/series/creation/validation-admin.robot

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ Create series with too long comment
5757
${letter}= Set Variable x
5858
Click Element id:add-comment-link
5959
Wait Until Element Is Visible id:comment
60-
Input Text id:comment ${letter * 256}
60+
Input Text id:comment ${letter * 1025}
6161
Submit Form id:add-series-form
62-
Element Text Should Be id:comment.errors Value is greater than allowable maximum of 255 characters
62+
Element Text Should Be id:comment.errors Value is greater than allowable maximum of 1024 characters
6363

6464
*** Keywords ***
6565
Before Test Suite

0 commit comments

Comments
 (0)