mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-10-31 07:51:05 +01:00
Don't try to run schema migrations for SQLite
This commit is contained in:
parent
6401480874
commit
cd0184970a
@ -53,6 +53,7 @@ import me.lucko.luckperms.common.references.UserIdentifier;
|
|||||||
import me.lucko.luckperms.common.storage.dao.AbstractDao;
|
import me.lucko.luckperms.common.storage.dao.AbstractDao;
|
||||||
import me.lucko.luckperms.common.storage.dao.legacy.LegacySqlMigration;
|
import me.lucko.luckperms.common.storage.dao.legacy.LegacySqlMigration;
|
||||||
import me.lucko.luckperms.common.storage.dao.sql.connection.AbstractConnectionFactory;
|
import me.lucko.luckperms.common.storage.dao.sql.connection.AbstractConnectionFactory;
|
||||||
|
import me.lucko.luckperms.common.storage.dao.sql.connection.file.SQLiteConnectionFactory;
|
||||||
|
|
||||||
import java.io.BufferedReader;
|
import java.io.BufferedReader;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
@ -197,12 +198,14 @@ public class SqlDao extends AbstractDao {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// migrations
|
// migrations
|
||||||
|
if (!(provider instanceof SQLiteConnectionFactory)) {
|
||||||
try (Connection connection = provider.getConnection()) {
|
try (Connection connection = provider.getConnection()) {
|
||||||
try (Statement s = connection.createStatement()) {
|
try (Statement s = connection.createStatement()) {
|
||||||
s.execute(prefix.apply("ALTER TABLE {prefix}actions MODIFY COLUMN actor_name VARCHAR(100)"));
|
s.execute(prefix.apply("ALTER TABLE {prefix}actions MODIFY COLUMN actor_name VARCHAR(100)"));
|
||||||
s.execute(prefix.apply("ALTER TABLE {prefix}actions MODIFY COLUMN action VARCHAR(300)"));
|
s.execute(prefix.apply("ALTER TABLE {prefix}actions MODIFY COLUMN action VARCHAR(300)"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
setAcceptingLogins(true);
|
setAcceptingLogins(true);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user