caas: migrate -> change_plan

This commit is contained in:
Girish Ramakrishnan
2017-12-09 08:42:15 +05:30
parent 6dec02e1bd
commit 7d0cf1a754
5 changed files with 17 additions and 7 deletions
+10
View File
@@ -2,6 +2,7 @@
exports = module.exports = {
migrate: migrate,
changePlan: changePlan,
upgrade: upgrade
};
@@ -103,6 +104,15 @@ function doMigrate(options, callback) {
callback(null);
}
function changePlan(options, callback) {
assert.strictEqual(typeof options, 'object');
assert.strictEqual(typeof callback, 'function');
if (config.isDemo()) return callback(new CaasError(CaasError.BAD_FIELD, 'Not allowed in demo mode'));
doMigrate(options, callback);
}
function migrate(options, callback) {
assert.strictEqual(typeof options, 'object');
assert.strictEqual(typeof callback, 'function');