drop old serialization format table

This commit is contained in:
Kiran Hart 2022-01-17 13:50:04 -05:00
parent 5663d7f8eb
commit c3198e8b4e
2 changed files with 31 additions and 1 deletions

View File

@ -185,7 +185,8 @@ public class AuctionHouse extends TweetyPlugin {
new _8_ItemPerWorldMigration(), new _8_ItemPerWorldMigration(),
new _9_StatsMigration(), new _9_StatsMigration(),
new _10_InfiniteItemsMigration(), new _10_InfiniteItemsMigration(),
new _11_AdminLogMigration() new _11_AdminLogMigration(),
new _12_SerializeFormatDropMigration()
); );
dataMigrationManager.runMigrations(); dataMigrationManager.runMigrations();

View File

@ -0,0 +1,29 @@
package ca.tweetzy.auctionhouse.database.migrations;
import ca.tweetzy.auctionhouse.AuctionHouse;
import ca.tweetzy.core.database.DataMigration;
import ca.tweetzy.core.database.MySQLConnector;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
/**
* The current file has been created by Kiran Hart
* Date Created: August 12 2021
* Time Created: 11:58 a.m.
* Usage of any code found within this class is prohibited unless given explicit permission otherwise
*/
public class _12_SerializeFormatDropMigration extends DataMigration {
public _12_SerializeFormatDropMigration() {
super(12);
}
@Override
public void migrate(Connection connection, String tablePrefix) throws SQLException {
try (Statement statement = connection.createStatement()) {
statement.execute("DROP TABLE " + tablePrefix + "items");
}
}
}