2014-09-01 17:18:45 +02:00
|
|
|
'use strict';
|
|
|
|
|
2013-12-27 14:44:21 -05:00
|
|
|
// Stub Migrate:
|
|
|
|
// 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 StubMigrate = module.exports = function() {};
|
|
|
|
|
2014-09-01 17:18:45 +02:00
|
|
|
var Promise = require('bluebird');
|
|
|
|
|
2013-12-27 14:44:21 -05:00
|
|
|
var noSuchMethod = Promise.method(function() {
|
|
|
|
throw new Error("Migrations are not supported");
|
|
|
|
});
|
|
|
|
|
|
|
|
StubMigrate.prototype = {
|
|
|
|
make: noSuchMethod,
|
|
|
|
latest: noSuchMethod,
|
|
|
|
rollback: noSuchMethod,
|
|
|
|
currentVersion: noSuchMethod
|
2014-09-01 17:18:45 +02:00
|
|
|
};
|