File tree 5 files changed +52
-3
lines changed
java/ru/mystamps/web/feature/series
5 files changed +52
-3
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ private RowMappers() {
100
100
Currency secondCurrency = JdbcUtils .getCurrency (rs , "second_currency" );
101
101
102
102
// LATER: consider extracting this into a helper method
103
- String conditionField = rs .getString ("condition " );
103
+ String conditionField = rs .getString ("cond " );
104
104
SeriesCondition condition = rs .wasNull () ? null : SeriesCondition .valueOf (conditionField );
105
105
106
106
return new PurchaseAndSaleDto (
Original file line number Diff line number Diff line change 8
8
<include file =" 0.4.4/2020-05-02--hidden_series_images.xml" relativeToChangelogFile =" true" />
9
9
<include file =" 0.4.4/2020-05-04--series_sale_condition.xml" relativeToChangelogFile =" true" />
10
10
<include file =" 0.4.4/2020-05-04--collections_series_condition.xml" relativeToChangelogFile =" true" />
11
+ <include file =" 0.4.4/2020-05-23--modify_condition_field.xml" relativeToChangelogFile =" true" />
11
12
12
13
</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.8.xsd" >
7
+
8
+ <changeSet id =" modify-collections_series-condition-field" author =" php-coder" context =" scheme" >
9
+
10
+ <renameColumn
11
+ tableName=" collections_series"
12
+ oldColumnName=" condition"
13
+ newColumnName=" cond"
14
+ columnDataType=" VARCHAR(4)" />
15
+
16
+ <modifyDataType
17
+ tableName=" collections_series"
18
+ columnName=" cond"
19
+ newDataType=" VARCHAR(9)" />
20
+
21
+ <setColumnRemarks
22
+ tableName=" collections_series"
23
+ columnName=" cond"
24
+ remarks=" Example: MNH, CANCELLED" />
25
+
26
+ </changeSet >
27
+
28
+ <changeSet id =" modify-series_sales-condition-field" author =" php-coder" context =" scheme" >
29
+
30
+ <renameColumn
31
+ tableName=" series_sales"
32
+ oldColumnName=" condition"
33
+ newColumnName=" cond"
34
+ columnDataType=" VARCHAR(4)" />
35
+
36
+ <modifyDataType
37
+ tableName=" series_sales"
38
+ columnName=" cond"
39
+ newDataType=" VARCHAR(9)" />
40
+
41
+ <setColumnRemarks
42
+ tableName=" series_sales"
43
+ columnName=" cond"
44
+ remarks=" Example: MNH, CANCELLED" />
45
+
46
+ </changeSet >
47
+
48
+ </databaseChangeLog >
Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ series.find_purchases_and_sales_by_series_id = \
183
183
, first_currency \
184
184
, second_price \
185
185
, second_currency \
186
- , " condition " \
186
+ , cond \
187
187
FROM series_sales ss \
188
188
JOIN transaction_participants seller \
189
189
ON seller.id = ss.seller_id \
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ INSERT \
10
10
, second_price \
11
11
, second_currency \
12
12
, buyer_id \
13
- , " condition " \
13
+ , cond \
14
14
, created_at \
15
15
, created_by \
16
16
) \
You can’t perform that action at this time.
0 commit comments