Files
portfolio2023/node_modules/knex/lib/migrations/seed/seed-stub.js
T
2023-11-24 22:35:41 +01:00

14 lines
306 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,
};