migrate-stub.js 682 B

123456789101112131415161718192021222324
  1. "use strict";
  2. var _bluebird = require("bluebird");
  3. var _bluebird2 = _interopRequireDefault(_bluebird);
  4. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  5. // Stub Migrate:
  6. // Used for now in browser builds, where filesystem access isn't
  7. // available. Maybe we can eventually do websql migrations
  8. // with jsonp and a json migration api.
  9. var StubMigrate = module.exports = function () {};
  10. var noSuchMethod = _bluebird2.default.method(function () {
  11. throw new Error("Migrations are not supported");
  12. });
  13. StubMigrate.prototype = {
  14. make: noSuchMethod,
  15. latest: noSuchMethod,
  16. rollback: noSuchMethod,
  17. currentVersion: noSuchMethod
  18. };