From 7c5d8088dc145ca17e2d60b3ebeaadf84d8f6e0d Mon Sep 17 00:00:00 2001 From: Thomas Bastiani Date: Wed, 30 Nov 2016 12:21:01 +0000 Subject: [PATCH] Fix SQL table and column being incorrectly swapped Signed-off-by: Thomas Bastiani --- .../java/org/libresonic/player/dao/schema/hsql/Schema62.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libresonic-main/src/main/java/org/libresonic/player/dao/schema/hsql/Schema62.java b/libresonic-main/src/main/java/org/libresonic/player/dao/schema/hsql/Schema62.java index 0e945944..0c393ed2 100644 --- a/libresonic-main/src/main/java/org/libresonic/player/dao/schema/hsql/Schema62.java +++ b/libresonic-main/src/main/java/org/libresonic/player/dao/schema/hsql/Schema62.java @@ -39,7 +39,7 @@ public class Schema62 extends Schema { template.execute("insert into version values (27)"); } - if (!columnExists(template, "player", "m3u_bom_enabled")) { + if (!columnExists(template, "m3u_bom_enabled", "player")) { LOG.info("Database column 'player.m3u_bom_enabled' not found. Creating it."); template.execute("alter table player add m3u_bom_enabled boolean default false not null"); LOG.info("Database column 'player.m3u_bom_enabled' was added successfully.");