mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Sync versions / upgrade script with v3.0 SP1
.. which was released today.
This commit is contained in:
@@ -93,6 +93,20 @@ GcUpgrade::upgrade(const QDir &home)
|
||||
// Versions after 3 should add their upgrade processing at this point
|
||||
// DO NOT CHANGE THE VERSION 3 UPGRADE PROCESS ABOVE, ADD TO IT BELOW
|
||||
|
||||
// 3.0 SP1 upgrade processing
|
||||
if (last < VERSION3_SP1) {
|
||||
|
||||
// 2. Remove old CLucece 'index'
|
||||
QFile index(QString("%1/index").arg(home.canonicalPath()));
|
||||
if (index.exists()) {
|
||||
removeIndex(index);
|
||||
}
|
||||
|
||||
// 3. Remove metricDBv3 - force rebuild including the search index
|
||||
QFile db(QString("%1/metricDBv3").arg(home.canonicalPath()));
|
||||
if (db.exists()) db.remove();
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,20 +22,23 @@
|
||||
|
||||
// Build ID History
|
||||
//
|
||||
// 3001 - V3 RC1
|
||||
// 3002 - V3 RC2
|
||||
// 3003 - V3 RC3
|
||||
// 3004 - V3 RC4 / 4X
|
||||
// 3005 - V3 RC5 / 5X
|
||||
// 3006 - V3 RC6
|
||||
// 3007 - V3 RC7
|
||||
// 3010 - V3 RELEASE (June 7 2013)
|
||||
// 3040 - V3.1 DEV BUILDS
|
||||
#define VERSION3_BUILD 3010 // this was the official v3 build -- don't change this line!
|
||||
// 3001 - V3.0 RC1
|
||||
// 3002 - V3.0 RC2
|
||||
// 3003 - V3.0 RC3
|
||||
// 3004 - V3.0 RC4 / 4X
|
||||
// 3005 - V3.0 RC5 / 5X
|
||||
// 3006 - V3.0 RC6
|
||||
// 3007 - V3.0 RC7
|
||||
// 3010 - V3.0 RELEASE (June 7 2013)
|
||||
// 3020 - V3.0 SP1 RC1
|
||||
// 3030 - V3.0 SP1 RELEASE (December 2013)
|
||||
// 3040 - V3.1 DEVELOPMENT
|
||||
|
||||
// add new versions below
|
||||
#define VERSION_LATEST 3040 // this is the very latest build -- increment for new dev branch or releases
|
||||
#define VERSION_STRING "V3.1"
|
||||
#define VERSION3_BUILD 3010 // released
|
||||
#define VERSION3_SP1 3030 // released
|
||||
|
||||
#define VERSION_LATEST 3040
|
||||
#define VERSION_STRING "V3.1 (dev)"
|
||||
|
||||
class GcUpgrade
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user