mirror of
https://github.com/TotalFreedomMC/TF-Marriage.git
synced 2024-05-30 08:31:24 +00:00
22 lines
585 B
Java
22 lines
585 B
Java
package com.lenis0012.bukkit.marriage2.internal.data;
|
|
|
|
import java.sql.SQLException;
|
|
import java.sql.Statement;
|
|
|
|
public class DBUpgrade {
|
|
private static final int VERSION_ID = 2;
|
|
|
|
public int getVersionId() {
|
|
return VERSION_ID;
|
|
}
|
|
|
|
public void run(Statement statement, int currentVersion, String prefix) throws SQLException {
|
|
switch (currentVersion) {
|
|
case 1:
|
|
statement.execute("ALTER TABLE " + prefix + "players ADD last_name VARCHAR(16);");
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
} |