Fix SQL table and column being incorrectly swapped

Signed-off-by: Thomas Bastiani <thom@codehawks.eu>
master
Thomas Bastiani 8 years ago committed by Andrew DeMaria
parent 46a282900f
commit a0aa0b8958
  1. 2
      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)"); 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."); 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"); 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."); LOG.info("Database column 'player.m3u_bom_enabled' was added successfully.");

Loading…
Cancel
Save