Fixes Exception on plugin startup by dropping MySQL "support"

I don't see a way to support this check with the new database API.
`EpicFarming#getDataManager()` is `null` while the migrations are running
This commit is contained in:
Christian Koop 2023-10-24 03:26:25 +02:00
parent c85fdb02c3
commit f2b3c6980e
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3

View File

@ -1,5 +1,6 @@
package com.craftaro.epicfarming.database.migrations;
import com.craftaro.core.SongodaPlugin;
import com.craftaro.core.database.DataMigration;
import com.craftaro.core.database.DatabaseConnector;
import com.craftaro.core.database.MySQLConnector;
@ -16,7 +17,7 @@ public class _1_InitialMigration extends DataMigration {
@Override
public void migrate(Connection connection, String tablePrefix) throws SQLException {
String autoIncrement = EpicFarming.getPlugin(EpicFarming.class).getDatabaseConnector() instanceof MySQLConnector ? " AUTO_INCREMENT" : "";
String autoIncrement = /*EpicFarming.getPlugin(EpicFarming.class).getDatabaseConnector() instanceof MySQLConnector ? " AUTO_INCREMENT" :*/ "";
// Create farms table.
try (Statement statement = connection.createStatement()) {