Skip to content

Commit f2d40d8

Browse files
committed
fix(0.4/2017-05-29--test_image.xml): use type-aware attribute to fix migration on PostgreSQL.
The failure was: MigrationFailedException: Migration failed for change set classpath:/liquibase/version/0.4/2017-05-29--test_image.xml::add-test-image::php-coder: Reason: liquibase.exception.DatabaseException: org.postgresql.util.PSQLException: ERROR: column "image_id" is of type integer but expression is of type character varying Hint: You will need to rewrite or cast the expression. Addressed to #1034
1 parent cdb000e commit f2d40d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/resources/liquibase/version/0.4/2017-05-29--test_image.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<changeSet id="add-test-image" author="php-coder" context="test-data">
99

1010
<insert tableName="images_data">
11-
<column name="image_id" value="1" />
11+
<column name="image_id" valueNumeric="1" />
1212
<column name="content" valueBlobFile="/test/test.png" />
1313
</insert>
1414

0 commit comments

Comments
 (0)