Bug 1341206 Relax Cache API schema version assertion since mismatches can happen in release profiles. r=asuth

This commit is contained in:
Ben Kelly 2017-02-21 10:14:31 -05:00
parent 79048793ad
commit 7888480cbc

View File

@ -2564,7 +2564,9 @@ Migrate(mozIStorageConnection* aConn)
MOZ_DIAGNOSTIC_ASSERT(currentVersion > lastVersion);
}
MOZ_DIAGNOSTIC_ASSERT(currentVersion == kLatestSchemaVersion);
// Don't release assert this since people do sometimes share profiles
// across schema versions. Our check in Validate() will catch it.
MOZ_ASSERT(currentVersion == kLatestSchemaVersion);
if (rewriteSchema) {
// Now overwrite the master SQL for the entries table to remove the column