mirror of
https://github.com/knex/knex.git
synced 2025-07-08 09:31:40 +00:00
19 lines
443 B
JavaScript
19 lines
443 B
JavaScript
'use strict';
|
|
|
|
// 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.
|
|
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
|
|
};
|