UNPKG

pimatic

Version:

A home automation server and framework for the Raspberry PI running on node.js

20 lines (15 loc) 505 B
// 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. const StubMigrate = module.exports = function() {}; import Promise from 'bluebird'; const noSuchMethod = Promise.method(function() { throw new Error("Migrations are not supported"); }); StubMigrate.prototype = { make: noSuchMethod, latest: noSuchMethod, rollback: noSuchMethod, currentVersion: noSuchMethod };