Skip to content

Commit ef2770c

Browse files
committed
Fix issue with null value in first price/first currency.
1 parent 68c79a7 commit ef2770c

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-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
@@ -18,5 +18,6 @@
1818
<include file="0.4/2016-08-18--unique_slug_in_collections.xml" relativeToChangelogFile="true" />
1919
<include file="0.4/2016-08-22--series_sales.xml" relativeToChangelogFile="true" />
2020
<include file="0.4/2016-08-27--fix_series_sales_price.xml" relativeToChangelogFile="true" />
21+
<include file="0.4/2016-09-28--add_constraints_to_series-first-price.xml" relativeToChangelogFile="true" />
2122

2223
</databaseChangeLog>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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="add-not_null_constraints-to-first-price" author="cssru" context="scheme">
9+
<comment>Adds not null constraints to first_price and first_currency columns</comment>
10+
11+
<addNotNullConstraint columnDataType="CURRENCY"
12+
columnName="first_price"
13+
tableName="series_sales" />
14+
15+
<addNotNullConstraint columnDataType="VARCHAR(3)"
16+
columnName="first_currency"
17+
tableName="series_sales" />
18+
19+
</changeSet>
20+
21+
</databaseChangeLog>

0 commit comments

Comments
 (0)