Revision 48352
Added by Tsampikos Livisianos almost 7 years ago
StatsManager.java | ||
---|---|---|
45 | 45 |
|
46 | 46 |
log.info("Backing up and Replacing public schema with shadow in " + dataSource.getConnection().getMetaData().getURL() + " ..."); |
47 | 47 |
con.createStatement().execute("drop schema if exists backup CASCADE ;"); |
48 |
//con.createStatement().execute("alter schema public rename to backup ;");
|
|
49 |
con.createStatement().execute("drop schema if exists public CASCADE ;"); |
|
48 |
con.createStatement().execute("alter schema public rename to backup ;"); |
|
49 |
//con.createStatement().execute("drop schema if exists public CASCADE ;");
|
|
50 | 50 |
con.createStatement().execute("alter schema shadow rename TO public ;"); |
51 | 51 |
log.info("All ops done!"); |
52 | 52 |
con.close(); |
Also available in: Unified diff
keep backup of stats db