mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-11-01 09:59:18 +00:00
add the other spot cooldown table is created
This commit is contained in:
parent
7f737f8576
commit
002d9b05fc
|
@ -1,13 +1,13 @@
|
||||||
package com.projectkorra.projectkorra.util;
|
package com.projectkorra.projectkorra.util;
|
||||||
|
|
||||||
import java.sql.ResultSet;
|
|
||||||
import java.sql.SQLException;
|
|
||||||
|
|
||||||
import com.projectkorra.projectkorra.Manager;
|
import com.projectkorra.projectkorra.Manager;
|
||||||
import com.projectkorra.projectkorra.ProjectKorra;
|
import com.projectkorra.projectkorra.ProjectKorra;
|
||||||
import com.projectkorra.projectkorra.storage.DBConnection;
|
import com.projectkorra.projectkorra.storage.DBConnection;
|
||||||
import com.projectkorra.projectkorra.storage.MySQL;
|
import com.projectkorra.projectkorra.storage.MySQL;
|
||||||
|
|
||||||
|
import java.sql.ResultSet;
|
||||||
|
import java.sql.SQLException;
|
||||||
|
|
||||||
public class DBCooldownManager extends Manager {
|
public class DBCooldownManager extends Manager {
|
||||||
|
|
||||||
private DBCooldownManager() {
|
private DBCooldownManager() {
|
||||||
|
@ -33,7 +33,7 @@ public class DBCooldownManager extends Manager {
|
||||||
ProjectKorra.log.info("Creating pk_cooldowns table");
|
ProjectKorra.log.info("Creating pk_cooldowns table");
|
||||||
String query = "CREATE TABLE `pk_cooldowns` (uuid TEXT(36) PRIMARY KEY, cooldown_id INTEGER NOT NULL, value BIGINT);";
|
String query = "CREATE TABLE `pk_cooldowns` (uuid TEXT(36) PRIMARY KEY, cooldown_id INTEGER NOT NULL, value BIGINT);";
|
||||||
if (DBConnection.sql instanceof MySQL) {
|
if (DBConnection.sql instanceof MySQL) {
|
||||||
query = "CREATE TABLE `pk_cooldowns` (uuid VARCHAR(36) PRIMARY KEY, cooldown_id INTEGER NOT NULL, value BIGINT);";
|
query = "CREATE TABLE `pk_cooldowns` (uuid VARCHAR(36) NOT NULL, cooldown_id INTEGER NOT NULL, value BIGINT, PRIMARY KEY (uuid, cooldown_id));";
|
||||||
}
|
}
|
||||||
DBConnection.sql.modifyQuery(query, false);
|
DBConnection.sql.modifyQuery(query, false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue