File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
src/main/resources/liquibase/version/0.4 Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 5
5
xsi:schemaLocation=" http://www.liquibase.org/xml/ns/dbchangelog
6
6
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.0.xsd" >
7
7
8
+ <changeSet id =" modify-transaction_participants-url-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.transaction_participants 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 transaction_participants
22
+ MODIFY url VARCHAR(285)
23
+ CHARACTER SET ascii
24
+ </sql >
25
+
26
+ </changeSet >
27
+
8
28
<changeSet id =" modify-transaction_participants-url-field" author =" php-coder" context =" scheme" >
9
29
<modifyDataType tableName =" transaction_participants" columnName =" url" newDataType =" VARCHAR(285)" />
10
30
</changeSet >
You can’t perform that action at this time.
0 commit comments