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.
|
2020-04-19 00:40:23 +02:00
|
|
|
const StubMigrate = (module.exports = function () {});
|
2015-05-09 13:58:18 -04:00
|
|
|
|
2020-04-19 00:40:23 +02:00
|
|
|
const noSuchMethod = async function () {
|
2018-07-09 08:10:34 -04:00
|
|
|
throw new Error('Migrations are not supported');
|
2019-06-18 00:07:24 +02:00
|
|
|
};
|
2015-05-09 13:58:18 -04:00
|
|
|
|
|
|
|
StubMigrate.prototype = {
|
|
|
|
make: noSuchMethod,
|
|
|
|
latest: noSuchMethod,
|
|
|
|
rollback: noSuchMethod,
|
2018-07-09 08:10:34 -04:00
|
|
|
currentVersion: noSuchMethod,
|
2019-05-19 07:14:52 -04:00
|
|
|
up: noSuchMethod,
|
2019-05-29 18:37:18 -04:00
|
|
|
down: noSuchMethod,
|
2015-05-09 13:58:18 -04:00
|
|
|
};
|