if(!migratedData.data)returnPromise.reject(newError('Migrator - Migration returned empty data'))
if(!migratedData.data)returnPromise.reject(newError('Migrator - migration returned empty data'))
if(migration.version!==undefined&&migratedData.meta.version!==migration.version)returnPromise.reject(newError('Migrator - Migration did not update version number correctly'))