24 lines
645 B
Java
24 lines
645 B
Java
package com.craftaro.ultimatestacker.database.migrations;
|
|
|
|
import com.songoda.core.database.DataMigration;
|
|
|
|
import java.sql.Connection;
|
|
import java.sql.SQLException;
|
|
import java.sql.Statement;
|
|
|
|
public class _6_RemoveStackedEntityTable extends DataMigration {
|
|
|
|
public _6_RemoveStackedEntityTable() {
|
|
super(6);
|
|
}
|
|
|
|
@Override
|
|
public void migrate(Connection connection, String tablePrefix) {
|
|
try (Statement statement = connection.createStatement()) {
|
|
statement.execute("DROP TABLE " + tablePrefix + "stacked_entities");
|
|
} catch (SQLException e) {
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
}
|