knex/lib/seed/seed-stub.js
2019-07-10 23:48:43 +02:00

14 lines
304 B
JavaScript

// Stub Seed:
// Used for now in browser builds, where filesystem access isn't
// available.
const StubSeed = (module.exports = function() {});
const noSuchMethod = async function() {
throw new Error('Seeds are not supported');
};
StubSeed.prototype = {
make: noSuchMethod,
run: noSuchMethod,
};