File tree 4 files changed +34
-3
lines changed
resources/liquibase/version
test/robotframework/series/import
4 files changed +34
-3
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public static final class Series {
41
41
}
42
42
43
43
public static final class SeriesImportRequest {
44
- public static final int URL_LENGTH = 255 ;
44
+ public static final int URL_LENGTH = 285 ;
45
45
}
46
46
47
47
public static final class SuspiciousActivity {
Original file line number Diff line number Diff line change 33
33
<include file =" 0.4/2017-10-31--series_sales_null_second_currency.xml" relativeToChangelogFile =" true" />
34
34
<include file =" 0.4/2017-10-31--non_nullable_catalog_codes.xml" relativeToChangelogFile =" true" />
35
35
<include file =" 0.4/2017-11-08--import_series.xml" relativeToChangelogFile =" true" />
36
+ <include file =" 0.4/2017-11-09--series_import_requests_url_length.xml" relativeToChangelogFile =" true" />
36
37
37
38
</databaseChangeLog >
Original file line number Diff line number Diff line change
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.0.xsd" >
7
+
8
+ <changeSet id =" modify-series_import_requests-charset" author =" php-coder" context =" scheme" dbms =" mysql" >
9
+ <!--
10
+ Fix for "liquibase.exception.DatabaseException:
11
+ Specified key was too long; max key length is 767 bytes
12
+ [Failed SQL: ALTER TABLE mystamps.series_import_requests MODIFY url VARCHAR(285)]".
13
+ See also: https://stackoverflow.com/questions/1814532/1071-specified-key-was-too-long-max-key-length-is-767-bytes
14
+ -->
15
+ <comment >
16
+ Change character set from utf8 to ascii for a URL field to be able to have a unique
17
+ constraint on a field that has length greater than 255 characters.
18
+ </comment >
19
+
20
+ <sql >
21
+ ALTER TABLE series_import_requests DEFAULT CHARACTER SET ascii
22
+ </sql >
23
+
24
+ </changeSet >
25
+
26
+ <changeSet id =" modify-series_import_requests-url-field" author =" php-coder" context =" scheme" >
27
+ <modifyDataType tableName =" series_import_requests" columnName =" url" newDataType =" VARCHAR(285)" />
28
+ </changeSet >
29
+
30
+ </databaseChangeLog >
Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ Submit request with blank required field
15
15
Submit request with too long url
16
16
[Documentation] Verify validation of too long url
17
17
${letter } = Set Variable j
18
- Input Text id=url http://${letter * 255 }
18
+ Input Text id=url http://${letter * 285 }
19
19
Submit Form id=import-series-form
20
- Element Text Should Be id=url.errors Value is greater than allowable maximum of 255 characters
20
+ Element Text Should Be id=url.errors Value is greater than allowable maximum of 285 characters
21
21
22
22
Submit request with invalid url
23
23
[Documentation] Verify validation of invalid url
You can’t perform that action at this time.
0 commit comments