From ef636472638b0aec8b7f56fbd3a22943aaa2a47a Mon Sep 17 00:00:00 2001 From: Petr Ilin Date: Tue, 22 Mar 2022 23:54:30 +0300 Subject: PostgreSQL automigration fix (closes #17) --- src/main/java/net/elytrium/limboauth/LimboAuth.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/main/java') diff --git a/src/main/java/net/elytrium/limboauth/LimboAuth.java b/src/main/java/net/elytrium/limboauth/LimboAuth.java index 0a56e06..15b2222 100644 --- a/src/main/java/net/elytrium/limboauth/LimboAuth.java +++ b/src/main/java/net/elytrium/limboauth/LimboAuth.java @@ -298,7 +298,11 @@ public class LimboAuth { + playerDao.getTableInfo().getTableName() + "';"; break; } - case "postgresql": + case "postgresql": { + findSql = "SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_CATALOG = '" + Settings.IMP.DATABASE.DATABASE + + "' AND TABLE_NAME = '" + playerDao.getTableInfo().getTableName() + "';"; + break; + } case "mysql": { findSql = "SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = '" + Settings.IMP.DATABASE.DATABASE + "' AND TABLE_NAME = '" + playerDao.getTableInfo().getTableName() + "';"; -- cgit