mirror of
https://github.com/songoda/EpicFarming.git
synced 2024-06-27 14:54:46 +02:00
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:
parent
c85fdb02c3
commit
f2b3c6980e
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user