knex/lib/migrations/migrate/migrate-stub.js

18 lines
423 B
JavaScript
Raw Permalink Normal View History

2015-05-09 13:58:18 -04:00
// Stub Migrate:
// Used for now in browser builds, where filesystem access isn't
// 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 () {
throw new Error('Migrations are not supported');
};
2015-05-09 13:58:18 -04:00
StubMigrate.prototype = {
make: noSuchMethod,
latest: noSuchMethod,
rollback: noSuchMethod,
currentVersion: noSuchMethod,
up: noSuchMethod,
2019-05-29 18:37:18 -04:00
down: noSuchMethod,
2015-05-09 13:58:18 -04:00
};