knex/lib/seed/seed-stub.js
2015-08-25 10:23:34 +03:00

19 lines
445 B
JavaScript

// 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.
"use strict";
var StubSeed = module.exports = function () {};
var Promise = require('bluebird');
var noSuchMethod = Promise.method(function () {
throw new Error("Seeds are not supported");
});
StubSeed.prototype = {
make: noSuchMethod,
run: noSuchMethod
};