2014-09-01 17:18:45 +02:00
|
|
|
'use strict';
|
|
|
|
|
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.
|
|
|
|
var StubSeed = module.exports = function() {};
|
|
|
|
|
2014-09-01 17:18:45 +02:00
|
|
|
var Promise = require('bluebird');
|
|
|
|
|
2014-07-21 09:42:56 -04:00
|
|
|
var noSuchMethod = Promise.method(function() {
|
|
|
|
throw new Error("Seeds are not supported");
|
|
|
|
});
|
|
|
|
|
|
|
|
StubSeed.prototype = {
|
|
|
|
make: noSuchMethod,
|
|
|
|
run: noSuchMethod
|
2014-09-01 17:18:45 +02:00
|
|
|
};
|