New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v105.1.0 -> v105.2.0 Migration failed with PostgreSQL (embed JDBC) #316
Comments
I commit
I commit |
This problem caused by PosgreSQL's table name handling. then, I try to solve that with below patch diff --git a/jpsonic-main/src/main/resources/liquibase/jp105.2.0/add-order.xml b/jpsonic-main/src/main/resources/liquibase/jp105.2.0/add-order.xml
index 0c79f08a..3aebb5e9 100644
--- a/jpsonic-main/src/main/resources/liquibase/jp105.2.0/add-order.xml
+++ b/jpsonic-main/src/main/resources/liquibase/jp105.2.0/add-order.xml
@@ -9,7 +9,7 @@
<columnExists tableName="artist" columnName="_order" />
</not>
</preConditions>
- <addColumn tableName="artist">
+ <addColumn tableName="artist" schemaName="public">
<column name="_order" type="int">
<constraints nullable="true" />
</column>
@@ -21,7 +21,7 @@
<columnExists tableName="album" columnName="_order" />
</not>
</preConditions>
- <addColumn tableName="album">
+ <addColumn tableName="album" schemaName="public">
<column name="_order" type="int">
<constraints nullable="true" />
</column>
@@ -34,22 +34,22 @@
columnName="_order" />
</not>
</preConditions>
- <addColumn tableName="media_File">
+ <addColumn tableName="media_File" schemaName="public">
<column name="_order" type="int">
<constraints nullable="true" />
</column>
</addColumn>
</changeSet>
<changeSet id="add-order_004" author="tesshu">
- <addNotNullConstraint tableName="artist"
+ <addNotNullConstraint tableName="artist" schemaName="public"
columnName="_order" columnDataType="int" defaultNullValue="-1" />
</changeSet>
<changeSet id="add-order_005" author="tesshu">
- <addNotNullConstraint tableName="album"
+ <addNotNullConstraint tableName="album" schemaName="public"
columnName="_order" columnDataType="int" defaultNullValue="-1" />
</changeSet>
<changeSet id="add-order_006" author="tesshu">
- <addNotNullConstraint tableName="media_File"
+ <addNotNullConstraint tableName="media_File" schemaName="public"
columnName="_order" columnDataType="int" defaultNullValue="-1" />
</changeSet> Although, this problem continued. |
Let's investigate. An urgent patch is to delete add-order_004, 005, 006. The program inserts the value explicitly without relying on the default value. |
× media_File @orumin |
Problem description
When jpsonic upgrading from v105.1.0 to v105.2.0, I got error message like bellow
Steps to reproduce
docker-compose up -d
System information
Additional notes
Include any extra notes here. Otherwise you may remove this section.
The text was updated successfully, but these errors were encountered: