diff options
author | Petr Ilin <hevav@hevav.dev> | 2022-03-22 23:54:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-22 23:54:30 +0300 |
commit | ef636472638b0aec8b7f56fbd3a22943aaa2a47a (patch) | |
tree | 19cf28ad8431037697d5fe3f9ed3004ebfd3719a /src/main/java | |
parent | dac848544f9005b81b6446bfc095a3b27d62b5a8 (diff) | |
download | LimboAuth-ef636472638b0aec8b7f56fbd3a22943aaa2a47a.tar.gz LimboAuth-ef636472638b0aec8b7f56fbd3a22943aaa2a47a.tar.bz2 LimboAuth-ef636472638b0aec8b7f56fbd3a22943aaa2a47a.zip |
PostgreSQL automigration fix (closes #17)
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/net/elytrium/limboauth/LimboAuth.java | 6 |
1 files changed, 5 insertions, 1 deletions
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() + "';"; |