dijkstra-backend-cloudron/node_modules/knex/lib/migrate/migrate-stub.js

18 lines
421 B
JavaScript
Raw Normal View History

// Stub Migrate:
// Used for now in browser builds, where filesystem access isn't
// available.
const StubMigrate = (module.exports = function() {});
const noSuchMethod = async function() {
throw new Error('Migrations are not supported');
};
StubMigrate.prototype = {
make: noSuchMethod,
latest: noSuchMethod,
rollback: noSuchMethod,
currentVersion: noSuchMethod,
up: noSuchMethod,
down: noSuchMethod,
};