Skip to content
This repository was archived by the owner on Sep 8, 2021. It is now read-only.

Conversation

fxthomas
Copy link
Contributor

@fxthomas fxthomas commented Jan 3, 2020

In PostgreSQL, Liquibase maps the blob type to an oid column by
default[1]. That column type is not supported[2] very well when using
the valueBlobFile attribute, which expects a bytea column instead.

This was confirmed on all PostgreSQL versions starting from 9.6 (Airsonic
fails to start in all cases).

The validCheckSum attribute does not need to be updated since it was
already for the previous (binary_type, varchar_type) combination in
an unrelated commit (78a99d5).

Fixes #1213.

[1] https://liquibase.jira.com/browse/CORE-1863
[2] liquibase/liquibase#605

@muff1nman
Copy link
Contributor

Mental note: we really need to add more db migration tests.

In PostgreSQL, Liquibase maps the `blob` type to an `oid` column by
default[1]. That column type is not supported[2] very well when using
the `valueBlobFile` attribute, which expects a `bytea` column instead.

This was confirmed on all PostgreSQL versions starting from 9.6.

The `validCheckSum` attribute does not need to be updated since it was
already for the previous (binary_type, varchar_type) combination in
an unrelated commit (78a99d5).

Fixes airsonic#1213.

[1] https://liquibase.jira.com/browse/CORE-1863
[2] liquibase/liquibase#605
@fxthomas fxthomas force-pushed the 1213-fix-postgresql-initial-migration branch from 5bd841a to 66434f7 Compare January 4, 2020 20:47
@fxthomas
Copy link
Contributor Author

fxthomas commented Jan 4, 2020

Rebased on master to make the build pass.

@fxthomas fxthomas added this to the 10.6.0 milestone Jan 4, 2020
@muff1nman
Copy link
Contributor

ahh sorry already merged the previous version.

@muff1nman muff1nman closed this Jan 4, 2020
@fxthomas fxthomas deleted the 1213-fix-postgresql-initial-migration branch January 4, 2020 22:44
@fxthomas
Copy link
Contributor Author

fxthomas commented Jan 4, 2020

That's okay, no worries. It shouldn't change a lot of things in the tests to be fair, since... we don't test that 😉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Airsonic fails to initialize fresh postgresql database
2 participants