From 479b2d026c2226acb88411ed6645559fc805676a Mon Sep 17 00:00:00 2001 From: Luck Date: Sat, 23 Nov 2019 14:15:30 +0000 Subject: [PATCH] Remove sql schema migrations --- .../storage/implementation/sql/SqlStorage.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/common/src/main/java/me/lucko/luckperms/common/storage/implementation/sql/SqlStorage.java b/common/src/main/java/me/lucko/luckperms/common/storage/implementation/sql/SqlStorage.java index 9f702ada8..f195822d7 100644 --- a/common/src/main/java/me/lucko/luckperms/common/storage/implementation/sql/SqlStorage.java +++ b/common/src/main/java/me/lucko/luckperms/common/storage/implementation/sql/SqlStorage.java @@ -43,8 +43,6 @@ import me.lucko.luckperms.common.node.model.HeldNodeImpl; import me.lucko.luckperms.common.plugin.LuckPermsPlugin; import me.lucko.luckperms.common.storage.implementation.StorageImplementation; import me.lucko.luckperms.common.storage.implementation.sql.connection.ConnectionFactory; -import me.lucko.luckperms.common.storage.implementation.sql.connection.file.SQLiteConnectionFactory; -import me.lucko.luckperms.common.storage.implementation.sql.connection.hikari.PostgreConnectionFactory; import me.lucko.luckperms.common.storage.misc.PlayerSaveResultImpl; import me.lucko.luckperms.common.util.gson.GsonProvider; @@ -231,20 +229,6 @@ public class SqlStorage implements StorageImplementation { } } } - - // migrations - try { - if (!(this.connectionFactory instanceof SQLiteConnectionFactory) && !(this.connectionFactory instanceof PostgreConnectionFactory)) { - try (Connection connection = this.connectionFactory.getConnection()) { - try (Statement s = connection.createStatement()) { - s.execute(this.statementProcessor.apply("ALTER TABLE {prefix}actions MODIFY COLUMN actor_name VARCHAR(100)")); - s.execute(this.statementProcessor.apply("ALTER TABLE {prefix}actions MODIFY COLUMN action VARCHAR(300)")); - } - } - } - } catch (Exception e) { - e.printStackTrace(); - } } @Override