Remove sql schema migrations

This commit is contained in:
Luck 2019-11-23 14:15:30 +00:00
parent 8e9683b33f
commit 479b2d026c
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -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