From ca0a4cdf028ad7b8c1250e0cf2393e497ec3a2ed Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Sun, 21 Mar 2021 22:40:05 +0100 Subject: [PATCH] Fix table names --- .../java/fr/pandacube/lib/core/permissions/SQLPermissions.java | 2 +- Core/src/main/java/fr/pandacube/lib/core/players/SQLPlayer.java | 2 +- .../java/fr/pandacube/lib/core/players/SQLPlayerIgnore.java | 2 +- .../fr/pandacube/lib/core/players/SQLPlayerNameHistory.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Core/src/main/java/fr/pandacube/lib/core/permissions/SQLPermissions.java b/Core/src/main/java/fr/pandacube/lib/core/permissions/SQLPermissions.java index f3b60b5..3bec2d7 100644 --- a/Core/src/main/java/fr/pandacube/lib/core/permissions/SQLPermissions.java +++ b/Core/src/main/java/fr/pandacube/lib/core/permissions/SQLPermissions.java @@ -15,7 +15,7 @@ public class SQLPermissions extends SQLElement { @Override protected String tableName() { - return "pandacube_permissions"; + return "permissions"; } public static final SQLField name = field(VARCHAR(64), false); diff --git a/Core/src/main/java/fr/pandacube/lib/core/players/SQLPlayer.java b/Core/src/main/java/fr/pandacube/lib/core/players/SQLPlayer.java index b28e2cf..02504a2 100644 --- a/Core/src/main/java/fr/pandacube/lib/core/players/SQLPlayer.java +++ b/Core/src/main/java/fr/pandacube/lib/core/players/SQLPlayer.java @@ -25,7 +25,7 @@ public class SQLPlayer extends SQLElement { */ @Override protected String tableName() { - return "pandacube_player"; + return "player"; } /* diff --git a/Core/src/main/java/fr/pandacube/lib/core/players/SQLPlayerIgnore.java b/Core/src/main/java/fr/pandacube/lib/core/players/SQLPlayerIgnore.java index c6d6307..3065a9c 100644 --- a/Core/src/main/java/fr/pandacube/lib/core/players/SQLPlayerIgnore.java +++ b/Core/src/main/java/fr/pandacube/lib/core/players/SQLPlayerIgnore.java @@ -20,7 +20,7 @@ public class SQLPlayerIgnore extends SQLElement { @Override protected String tableName() { - return "pandacube_player_ignore"; + return "player_ignore"; } public static final SQLFKField ignorer = foreignKey(false, SQLPlayer.class, SQLPlayer.playerId); diff --git a/Core/src/main/java/fr/pandacube/lib/core/players/SQLPlayerNameHistory.java b/Core/src/main/java/fr/pandacube/lib/core/players/SQLPlayerNameHistory.java index bcfc755..00cd289 100644 --- a/Core/src/main/java/fr/pandacube/lib/core/players/SQLPlayerNameHistory.java +++ b/Core/src/main/java/fr/pandacube/lib/core/players/SQLPlayerNameHistory.java @@ -21,7 +21,7 @@ public class SQLPlayerNameHistory extends SQLElement { @Override protected String tableName() { - return "pandacube_player_name_history"; + return "player_name_history"; } public static final SQLFKField playerId = foreignKey(false, SQLPlayer.class, SQLPlayer.playerId);