Revision 58335
Added by Antonis Lempesis about 4 years ago
DBDriver.java | ||
---|---|---|
20 | 20 |
statsDao = new StatsDAO(dbUrl, dbUser, dbPassword, dbDriver); |
21 | 21 |
} |
22 | 22 |
|
23 |
|
|
24 | 23 |
public void prepareDB(String user) throws Exception { |
25 | 24 |
try { |
26 | 25 |
|
... | ... | |
33 | 32 |
} |
34 | 33 |
} |
35 | 34 |
|
36 |
|
|
37 |
|
|
38 |
|
|
39 | 35 |
public void finalizedDB() throws Exception { |
40 | 36 |
|
41 | 37 |
try { |
... | ... | |
48 | 44 |
statsDao.insertCountries(); |
49 | 45 |
statsDao.backwardsCompatibility(); |
50 | 46 |
statsDao.createChartIndexes(); |
47 |
statsDao.copyUsageStats(); |
|
51 | 48 |
|
52 | 49 |
} catch (Exception e) { |
53 | 50 |
log.error("Error while finalizing SQL DB", e); |
... | ... | |
65 | 62 |
} |
66 | 63 |
} |
67 | 64 |
|
68 |
|
|
69 | 65 |
public StatsDAO getStatsDao() { |
70 | 66 |
return statsDao; |
71 | 67 |
} |
Also available in: Unified diff
various shema fixes