forked from Upstream/mmocore
!New stuff
This commit is contained in:
parent
49ed57d057
commit
196b977676
2
pom.xml
2
pom.xml
@ -140,7 +140,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.lumine</groupId>
|
<groupId>io.lumine</groupId>
|
||||||
<artifactId>MythicLib-dist</artifactId>
|
<artifactId>MythicLib-dist</artifactId>
|
||||||
<version>1.3</version>
|
<version>1.3.1</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
@ -17,6 +17,24 @@ public class MySQLDataProvider extends MMODataSource implements DataProvider {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void load() {
|
public void load() {
|
||||||
|
|
||||||
|
|
||||||
|
/*TODO
|
||||||
|
also move Debug function to mysql data provider
|
||||||
|
|
||||||
|
String tableName = getPoolName();
|
||||||
|
getResultAsync("SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = '" +getPoolName()+ "' AND TABLE_NAME = 'mmocore_playerdata' AND COLUMN_NAME = 'times_claimed'",
|
||||||
|
result -> {
|
||||||
|
if (!result.next())
|
||||||
|
executeUpdateAsync()
|
||||||
|
}):
|
||||||
|
executeUpdateAsync();
|
||||||
|
|
||||||
|
|
||||||
|
if (!provider.prepareStatement("SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = '" + provider.getDatabase()
|
||||||
|
+ "' AND TABLE_NAME = '" + provider.getBountyDataTable() + "' AND COLUMN_NAME = 'last_updated'").executeQuery().next())
|
||||||
|
provider.prepareStatement("ALTER TABLE " + provider.getBountyDataTable() + " ADD COLUMN last_updated BIGINT").execute();*/
|
||||||
|
|
||||||
executeUpdateAsync(
|
executeUpdateAsync(
|
||||||
"CREATE TABLE IF NOT EXISTS mmocore_playerdata(uuid VARCHAR(36),class_points "
|
"CREATE TABLE IF NOT EXISTS mmocore_playerdata(uuid VARCHAR(36),class_points "
|
||||||
+ "INT(11) DEFAULT 0,skill_points INT(11) DEFAULT 0,attribute_points INT(11) "
|
+ "INT(11) DEFAULT 0,skill_points INT(11) DEFAULT 0,attribute_points INT(11) "
|
||||||
|
Loading…
Reference in New Issue
Block a user