2015-05-09 13:58:18 -04:00
|
|
|
|
|
|
|
// Stub Migrate:
|
|
|
|
// Used for now in browser builds, where filesystem access isn't
|
2018-06-18 21:36:02 +02:00
|
|
|
// available.
|
2016-05-17 01:01:34 +10:00
|
|
|
const StubMigrate = module.exports = function() {};
|
2015-05-09 13:58:18 -04:00
|
|
|
|
2016-05-17 01:01:34 +10:00
|
|
|
import Promise from 'bluebird';
|
2015-05-09 13:58:18 -04:00
|
|
|
|
2016-05-17 01:01:34 +10:00
|
|
|
const noSuchMethod = Promise.method(function() {
|
2015-05-09 13:58:18 -04:00
|
|
|
throw new Error("Migrations are not supported");
|
|
|
|
});
|
|
|
|
|
|
|
|
StubMigrate.prototype = {
|
|
|
|
make: noSuchMethod,
|
|
|
|
latest: noSuchMethod,
|
|
|
|
rollback: noSuchMethod,
|
|
|
|
currentVersion: noSuchMethod
|
|
|
|
};
|