mirror of
https://github.com/imgfloat/server.git
synced 2026-06-22 21:01:23 +00:00
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:
@@ -53,10 +53,10 @@ public class Channel {
|
||||
@Column(name = "playlist_current_track_id")
|
||||
private String playlistCurrentTrackId;
|
||||
|
||||
@Column(name = "playlist_is_playing", nullable = false)
|
||||
@Column(name = "playlist_is_playing", nullable = false, columnDefinition = "INTEGER")
|
||||
private boolean playlistIsPlaying = false;
|
||||
|
||||
@Column(name = "playlist_is_paused", nullable = false)
|
||||
@Column(name = "playlist_is_paused", nullable = false, columnDefinition = "INTEGER")
|
||||
private boolean playlistIsPaused = 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_is_playing BOOLEAN NOT NULL DEFAULT FALSE;
|
||||
ALTER TABLE channels ADD COLUMN playlist_is_paused 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 INTEGER NOT NULL DEFAULT 0;
|
||||
ALTER TABLE channels ADD COLUMN playlist_track_position REAL NOT NULL DEFAULT 0;
|
||||
|
||||
Reference in New Issue
Block a user