knex/lib/seed/seed-stub.js

19 lines
445 B
JavaScript
Raw Normal View History

2014-07-21 09:42:56 -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.
2015-05-09 14:01:19 -04:00
"use strict";
2015-05-09 13:58:18 -04:00
var StubSeed = module.exports = function () {};
2014-07-21 09:42:56 -04:00
2015-08-25 10:23:34 +03:00
var Promise = require('bluebird');
2015-05-09 13:58:18 -04:00
var noSuchMethod = Promise.method(function () {
2015-05-09 14:01:19 -04:00
throw new Error("Seeds are not supported");
2014-07-21 09:42:56 -04:00
});
StubSeed.prototype = {
make: noSuchMethod,
run: noSuchMethod
2015-05-09 13:58:18 -04:00
};