mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-28 05:35:26 +01:00
Don't run schema migrations for Postgre (#568)
This commit is contained in:
parent
003ddc51de
commit
2985cf7237
@ -54,6 +54,7 @@ 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 me.lucko.luckperms.common.storage.dao.sql.connection.file.SQLiteConnectionFactory;
|
||||||
|
import me.lucko.luckperms.common.storage.dao.sql.connection.hikari.PostgreConnectionFactory;
|
||||||
|
|
||||||
import java.io.BufferedReader;
|
import java.io.BufferedReader;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
@ -198,7 +199,7 @@ public class SqlDao extends AbstractDao {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// migrations
|
// migrations
|
||||||
if (!(provider instanceof SQLiteConnectionFactory)) {
|
if (!(provider instanceof SQLiteConnectionFactory) && !(provider instanceof PostgreConnectionFactory)) {
|
||||||
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)"));
|
||||||
|
Loading…
Reference in New Issue
Block a user