Skip to content

Commit a455950

Browse files
committed
task: add hidden field to series_images table.
Part of #1356
1 parent 27ff1b8 commit a455950

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

Diff for: src/main/resources/liquibase/version/0.4.4.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
66
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd">
77

8-
8+
<include file="0.4.4/2020-05-02--hidden_series_images.xml" relativeToChangelogFile="true" />
99

1010
</databaseChangeLog>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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="add-hidden-field-to-series_images" author="php-coder" context="scheme">
9+
10+
<addColumn tableName="series_images">
11+
<column name="hidden" type="BOOLEAN" defaultValueBoolean="false">
12+
<constraints nullable="false" />
13+
</column>
14+
</addColumn>
15+
16+
</changeSet>
17+
18+
</databaseChangeLog>

Diff for: src/main/resources/sql/image_dao_queries.properties

+2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ INSERT \
33
INTO series_images \
44
( series_id \
55
, image_id \
6+
, hidden \
67
) \
78
VALUES \
89
( :series_id \
910
, :image_id \
11+
, FALSE \
1012
)
1113

1214
series_image.find_by_series_id = \

0 commit comments

Comments
 (0)