mirror of
https://github.com/kiranhart/Auction-House.git
synced 2024-11-23 05:35:16 +01:00
drop old serialization format table
This commit is contained in:
parent
5663d7f8eb
commit
c3198e8b4e
@ -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();
|
||||||
|
@ -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");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user