Changeset 1049
- Timestamp:
- 2008-08-20 15:35:00 (3 months ago)
- Files:
-
- trunk/components/migrationService.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/components/migrationService.js
r993 r1049 60 60 try { 61 61 debug("current " + DTA.VERSION); 62 var vc = Cc["@mozilla.org/xpcom/version-comparator;1"] 63 .getService(Ci.nsIVersionComparator); 64 65 var lastVersion = Preferences.getExt('version', '0'); 66 if (0 == vc.compare(DTA.VERSION, lastVersion)) { 62 63 let lastVersion = Preferences.getExt('version', '0'); 64 if (0 == DTA.compareVersion(lastVersion)) { 67 65 return; 68 66 } 69 67 debug("MigrationManager: migration started"); 70 if ( vc.compare(lastVersion, "1.0a1") < 0) {68 if (DTA.compareVersion(lastVersion, "1.0a1") < 0) { 71 69 this._execute(['Prefs', 'DropDowns', 'Filters', 'Remove']); 72 70 } 73 if ( vc.compare(lastVersion, "1.0.1") < 0) {71 if (DTA.compareversion(lastVersion, "1.0.1") < 0) { 74 72 this._execute(['ResetMaxConnections']); 75 73 }
