Initial commit
This commit is contained in:
17
node_modules/knex/lib/migrations/migrate/migrate-stub.js
generated
vendored
Executable file
17
node_modules/knex/lib/migrations/migrate/migrate-stub.js
generated
vendored
Executable file
@@ -0,0 +1,17 @@
|
||||
// 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,
|
||||
};
|
||||
Reference in New Issue
Block a user