2021-05-28 01:08:38 +02:00
|
|
|
package com.songoda.ultimatestacker.database.migrations;
|
|
|
|
|
|
|
|
import com.songoda.core.database.DataMigration;
|
|
|
|
|
|
|
|
import java.sql.Connection;
|
|
|
|
import java.sql.SQLException;
|
|
|
|
import java.sql.Statement;
|
|
|
|
|
2023-02-04 14:48:13 +01:00
|
|
|
public class _6_RemoveStackedEntityTable extends DataMigration {
|
2021-05-28 01:08:38 +02:00
|
|
|
|
2023-02-04 14:48:13 +01:00
|
|
|
public _6_RemoveStackedEntityTable() {
|
|
|
|
super(6);
|
2021-05-28 01:08:38 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2023-02-04 14:48:13 +01:00
|
|
|
public void migrate(Connection connection, String tablePrefix) {
|
2021-05-28 01:08:38 +02:00
|
|
|
try (Statement statement = connection.createStatement()) {
|
2023-02-04 14:48:13 +01:00
|
|
|
statement.execute("DROP TABLE " + tablePrefix + "stacked_entities");
|
2023-01-25 23:20:44 +01:00
|
|
|
} catch (SQLException e) {
|
2023-02-04 14:48:13 +01:00
|
|
|
e.printStackTrace();
|
2021-05-28 01:08:38 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|