Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
Fix major bug regarding new database creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Flibio committed Jul 19, 2016
1 parent 5b7cc3e commit 0a34463
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ sourceCompatibility = '1.8'
targetCompatibility = '1.8'

group 'io.github.flibio'
version '2.2.2'
version '2.2.3'

defaultTasks 'licenseFormat', 'clean', 'build'

Expand All @@ -33,7 +33,7 @@ dependencies {
compile 'org.spongepowered:spongeapi:4.1.0-SNAPSHOT'
compile 'com.github.flibio:updatifier:v1.4.0:api'
compile 'net.minecrell.mcstats:statslite-sponge:0.2.2'
compile 'com.github.flibiostudio:utils:1.6.6'
compile 'com.github.flibiostudio:utils:1.6.7'
}

shadowJar {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class PlayerServiceCommon implements PlayerEconService {

public PlayerServiceCommon(SqlManager manager) {
this.manager = manager;
if (isWorking())
if (manager.initialTestConnection())
manager.executeUpdate("CREATE TABLE IF NOT EXISTS economyliteplayers(uuid VARCHAR(36), balance DECIMAL(11,2), currency VARCHAR(1024))");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class VirtualServiceCommon implements VirtualEconService {

public VirtualServiceCommon(SqlManager manager) {
this.manager = manager;
if (isWorking()) {
if (manager.initialTestConnection()) {
manager.executeUpdate("CREATE TABLE IF NOT EXISTS economylitevirts(id VARCHAR(36), balance DECIMAL(11,2), currency VARCHAR(1024))");
manager.executeUpdate("ALTER TABLE `economylitevirts` CHANGE `id` `id` VARCHAR(1024)");
}
Expand Down

0 comments on commit 0a34463

Please sign in to comment.