mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
* Fixed index of H2 database. Now booster generation for Cube draft or searching for card in card editor is much faster.
This commit is contained in:
parent
a0840ec1b8
commit
89a0a815de
2 changed files with 5 additions and 5 deletions
|
@ -57,11 +57,11 @@ public class CardInfo {
|
|||
private static final int MAX_RULE_LENGTH = 700;
|
||||
|
||||
private static final String SEPARATOR = "@@@";
|
||||
@DatabaseField
|
||||
@DatabaseField(indexName = "name_index")
|
||||
protected String name;
|
||||
@DatabaseField(indexName = "name_cardNumber_index")
|
||||
@DatabaseField(indexName = "setCode_cardNumber_index")
|
||||
protected int cardNumber;
|
||||
@DatabaseField(indexName = "name_cardNumber_index")
|
||||
@DatabaseField(indexName = "setCode_cardNumber_index")
|
||||
protected String setCode;
|
||||
@DatabaseField(unique = true)
|
||||
protected String className;
|
||||
|
@ -101,7 +101,7 @@ public class CardInfo {
|
|||
protected boolean flipCard;
|
||||
@DatabaseField
|
||||
protected boolean doubleFaced;
|
||||
@DatabaseField(indexName = "name_cardNumber_index")
|
||||
@DatabaseField(indexName = "name_index")
|
||||
protected boolean nightCard;
|
||||
@DatabaseField
|
||||
protected String flipCardName;
|
||||
|
|
|
@ -56,7 +56,7 @@ public enum CardRepository {
|
|||
|
||||
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;
|
||||
private static final long CARD_DB_VERSION = 34;
|
||||
|
||||
private final Random random = new Random();
|
||||
private Dao<CardInfo, Object> cardDao;
|
||||
|
|
Loading…
Reference in a new issue