1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2026-01-27 05:02:47 +00:00

Database connection pool

Signed-off-by: Rogiel <rogiel@rogiel.com>
This commit is contained in:
2011-05-13 12:58:16 -03:00
parent 38612ea298
commit da28654510
3 changed files with 10 additions and 5 deletions

View File

@@ -12,7 +12,8 @@ public class CharacterSQLEnumGenerator {
final StringBuilder builder = new StringBuilder();
builder.append("ALTER TABLE `character` CHANGE `class` `class` ENUM(");
for (CharacterClass c : CharacterClass.values()) {
builder.append("'" + c.name() + "',");
if (!c.name().startsWith("DUMMY"))
builder.append("'" + c.name() + "',");
}
builder.replace(builder.length() - 1, builder.length(), "");
builder.append(") CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT 'HUMAN_FIGHTER';");