mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 03:51:58 -08:00
XMage 1.4.29V5
This commit is contained in:
parent
9fb0ee42ba
commit
cfe712efc6
5 changed files with 197 additions and 195 deletions
|
|
@ -58,7 +58,7 @@ public enum CardRepository {
|
|||
// raise this if db structure was changed
|
||||
private static final long CARD_DB_VERSION = 51;
|
||||
// raise this if new cards were added to the server
|
||||
private static final long CARD_CONTENT_VERSION = 109;
|
||||
private static final long CARD_CONTENT_VERSION = 110;
|
||||
private Dao<CardInfo, Object> cardDao;
|
||||
private Set<String> classNames;
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ public enum ExpansionRepository {
|
|||
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 = 5;
|
||||
private static final long EXPANSION_CONTENT_VERSION = 14;
|
||||
private static final long EXPANSION_CONTENT_VERSION = 15;
|
||||
|
||||
private Dao<ExpansionInfo, Object> expansionDao;
|
||||
|
||||
|
|
@ -88,10 +88,10 @@ public enum ExpansionRepository {
|
|||
try {
|
||||
// only with boosters and cards
|
||||
GenericRawResults<ExpansionInfo> setsList = expansionDao.queryRaw(
|
||||
"select * from expansion e " +
|
||||
" where e.boosters = 1 " +
|
||||
" and exists(select (1) from card c where c.setcode = e.code) " +
|
||||
" order by e.releasedate desc",
|
||||
"select * from expansion e "
|
||||
+ " where e.boosters = 1 "
|
||||
+ " and exists(select (1) from card c where c.setcode = e.code) "
|
||||
+ " order by e.releasedate desc",
|
||||
expansionDao.getRawRowMapper());
|
||||
|
||||
List<ExpansionInfo> resList = new ArrayList<>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue