Skip to content

Commit 02137cb

Browse files
committed
chore: increase a length of site_parser_params.value field.
1 parent 0e6bd08 commit 02137cb

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

src/main/resources/liquibase/changelog.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<include file="version/0.4.xml" relativeToChangelogFile="true" />
1414
<include file="version/0.4.1.xml" relativeToChangelogFile="true" />
1515
<include file="version/0.4.2.xml" relativeToChangelogFile="true" />
16+
<include file="version/0.4.3.xml" relativeToChangelogFile="true" />
1617

1718
<include file="test-data.xml" relativeToChangelogFile="true" />
1819

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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.1.xsd">
7+
8+
<include file="0.4.3/2020-03-07--site_parser_params_value_length.xml" relativeToChangelogFile="true" />
9+
10+
</databaseChangeLog>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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.1.xsd">
7+
8+
<changeSet id="increase-length-of-site_parser_params-value-field" author="php-coder" context="scheme">
9+
10+
<modifyDataType tableName="site_parser_params"
11+
columnName="value"
12+
newDataType="VARCHAR(100)" />
13+
14+
<!--
15+
modifyDataType loses NOT NULL property on MySQL:
16+
http://forum.liquibase.org/topic/warning-of-losing-primary-key-autoincrement-for-mysql
17+
In order to fix that, we patch the SQL query to specify NOT NULL again.
18+
-->
19+
<modifySql dbms="mysql">
20+
<append value=" NOT NULL" />
21+
</modifySql>
22+
23+
</changeSet>
24+
25+
</databaseChangeLog>

0 commit comments

Comments
 (0)