Skip to content

Commit cee66fd

Browse files
committed
Series sales form:: increase max length of a URL to 285.
While 255 characters should be enough for a URL, if it contains non-ASCII symbols, it gets encoded and the result is greater than 255 characters. To handle this case, I increased the max length of a URL. See: https://en.wikipedia.org/wiki/Percent-encoding
1 parent 648bc83 commit cee66fd

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,6 @@
3535
<include file="0.4/2017-11-08--import_series.xml" relativeToChangelogFile="true" />
3636
<include file="0.4/2017-11-09--series_import_requests_url_length.xml" relativeToChangelogFile="true" />
3737
<include file="0.4/2017-11-09--series_import_parsed_data_release_year_field.xml" relativeToChangelogFile="true" />
38+
<include file="0.4/2017-11-09--transaction_participants_url_length.xml" relativeToChangelogFile="true" />
3839

3940
</databaseChangeLog>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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-transaction_participants-url-field" author="php-coder" context="scheme">
9+
<modifyDataType tableName="transaction_participants" columnName="url" newDataType="VARCHAR(285)" />
10+
</changeSet>
11+
12+
</databaseChangeLog>

0 commit comments

Comments
 (0)