knex
Version:
A batteries-included SQL query & schema builder for PostgresSQL, MySQL, CockroachDB, MSSQL and SQLite3
18 lines (15 loc) • 423 B
JavaScript
// 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,
};