knex/src/seed/seed-stub.js

18 lines
430 B
JavaScript
Raw Normal View History

2015-05-09 13:58:18 -04:00
// Stub Seed:
// Used for now in browser builds, where filesystem access isn't
// available. Maybe we can eventually do websql migrations
// with jsonp and a json migration api.
const StubSeed = module.exports = function() {};
2015-05-09 13:58:18 -04:00
import Promise from 'bluebird';
2015-05-09 13:58:18 -04:00
const noSuchMethod = Promise.method(function() {
2015-05-09 13:58:18 -04:00
throw new Error("Seeds are not supported");
});
StubSeed.prototype = {
make: noSuchMethod,
run: noSuchMethod
};