Added field to database
This commit is contained in:
parent
7ee82882fc
commit
2b362fa08a
@ -282,6 +282,11 @@ public class MySQL extends AbstractSqlDataSource {
|
||||
+ col.EMAIL + " VARCHAR(255);");
|
||||
}
|
||||
|
||||
if (isColumnMissing(md, col.IS_VERIFIED)) {
|
||||
st.executeUpdate("ALTER TABLE " + tableName + " ADD COLUMN "
|
||||
+ col.IS_VERIFIED + " BIT;");
|
||||
}
|
||||
|
||||
if (isColumnMissing(md, col.IS_LOGGED)) {
|
||||
st.executeUpdate("ALTER TABLE " + tableName + " ADD COLUMN "
|
||||
+ col.IS_LOGGED + " SMALLINT NOT NULL DEFAULT '0' AFTER " + col.EMAIL);
|
||||
|
||||
@ -97,6 +97,10 @@ public final class DatabaseSettings implements SettingsHolder {
|
||||
public static final Property<String> MYSQL_COL_EMAIL =
|
||||
newProperty("DataSource.mySQLColumnEmail", "email");
|
||||
|
||||
@Comment("If the kickNotVerified setting is set to true and you want it to work in integration with your website, you must set the field name here to match the one on your database")
|
||||
public static final Property<String> MYSQL_IS_VERIFIED_FIELD =
|
||||
newProperty("DataSource.mySQLVerifiedField", "isVerified");
|
||||
|
||||
@Comment("Column for storing if a player is logged in or not")
|
||||
public static final Property<String> MYSQL_COL_ISLOGGED =
|
||||
newProperty("DataSource.mySQLColumnLogged", "isLogged");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user