From b456770e9c5d5fbe80f86beb52e86925491a203c Mon Sep 17 00:00:00 2001 From: North Date: Wed, 28 May 2014 07:46:38 +0300 Subject: [PATCH] now multiple client instances are supported --- Mage/src/mage/cards/repository/CardRepository.java | 2 +- Mage/src/mage/cards/repository/ExpansionRepository.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Mage/src/mage/cards/repository/CardRepository.java b/Mage/src/mage/cards/repository/CardRepository.java index b38f26a511..2da73fb974 100644 --- a/Mage/src/mage/cards/repository/CardRepository.java +++ b/Mage/src/mage/cards/repository/CardRepository.java @@ -53,7 +53,7 @@ public enum CardRepository { instance; - private static final String JDBC_URL = "jdbc:h2:file:./db/cards.h2"; + private static final String JDBC_URL = "jdbc:h2:file:./db/cards.h2;AUTO_SERVER=TRUE"; private static final String VERSION_ENTITY_NAME = "card"; private static final long CARD_DB_VERSION = 33; diff --git a/Mage/src/mage/cards/repository/ExpansionRepository.java b/Mage/src/mage/cards/repository/ExpansionRepository.java index 95bd767f60..2dbf641e7d 100644 --- a/Mage/src/mage/cards/repository/ExpansionRepository.java +++ b/Mage/src/mage/cards/repository/ExpansionRepository.java @@ -21,7 +21,7 @@ public enum ExpansionRepository { instance; - private static final String JDBC_URL = "jdbc:h2:file:./db/cards.h2"; + private static final String JDBC_URL = "jdbc:h2:file:./db/cards.h2;AUTO_SERVER=TRUE"; private static final String VERSION_ENTITY_NAME = "expansion"; private static final long EXPANSION_DB_VERSION = 3;