Please use the `done(function() {});` pattern for both `onerror` and `onmigrationdone` here.