You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
520 B
JavaScript
21 lines
520 B
JavaScript
9 years ago
|
|
||
|
// 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.
|
||
|
"use strict";
|
||
|
|
||
|
var StubMigrate = module.exports = function () {};
|
||
|
|
||
|
var Promise = require('bluebird');
|
||
|
|
||
|
var noSuchMethod = Promise.method(function () {
|
||
|
throw new Error("Migrations are not supported");
|
||
|
});
|
||
|
|
||
|
StubMigrate.prototype = {
|
||
|
make: noSuchMethod,
|
||
|
latest: noSuchMethod,
|
||
|
rollback: noSuchMethod,
|
||
|
currentVersion: noSuchMethod
|
||
|
};
|