fix: restore V19 migration checksum; annotate boolean columns with INTEGER columnDefinition

V19 was modified to use BOOLEAN type which changed its checksum and broke startup
on any DB that had already applied the original migration. Reverted V19 back to
INTEGER and added columnDefinition="INTEGER" to the two boolean fields in
Channel.java so Hibernate schema validation accepts the SQLite-native type.
This commit is contained in:
2026-05-01 12:20:07 +02:00
parent ba4d681d74
commit 2ed63906ad
2 changed files with 4 additions and 4 deletions
@@ -53,10 +53,10 @@ public class Channel {
@Column(name = "playlist_current_track_id") @Column(name = "playlist_current_track_id")
private String playlistCurrentTrackId; private String playlistCurrentTrackId;
@Column(name = "playlist_is_playing", nullable = false) @Column(name = "playlist_is_playing", nullable = false, columnDefinition = "INTEGER")
private boolean playlistIsPlaying = false; private boolean playlistIsPlaying = false;
@Column(name = "playlist_is_paused", nullable = false) @Column(name = "playlist_is_paused", nullable = false, columnDefinition = "INTEGER")
private boolean playlistIsPaused = false; private boolean playlistIsPaused = false;
@Column(name = "playlist_track_position", nullable = false) @Column(name = "playlist_track_position", nullable = false)
@@ -1,4 +1,4 @@
ALTER TABLE channels ADD COLUMN playlist_current_track_id TEXT; ALTER TABLE channels ADD COLUMN playlist_current_track_id TEXT;
ALTER TABLE channels ADD COLUMN playlist_is_playing BOOLEAN NOT NULL DEFAULT FALSE; ALTER TABLE channels ADD COLUMN playlist_is_playing INTEGER NOT NULL DEFAULT 0;
ALTER TABLE channels ADD COLUMN playlist_is_paused BOOLEAN NOT NULL DEFAULT FALSE; ALTER TABLE channels ADD COLUMN playlist_is_paused INTEGER NOT NULL DEFAULT 0;
ALTER TABLE channels ADD COLUMN playlist_track_position REAL NOT NULL DEFAULT 0; ALTER TABLE channels ADD COLUMN playlist_track_position REAL NOT NULL DEFAULT 0;