Skip to content
This repository was archived by the owner on Apr 10, 2020. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/synic.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,22 @@
return this._ajax('DELETE', '/kb/' + encodeURIComponent(kgname), null, callback);
},

/**
* Attempts to structurally migrate a KG
*
* @param {string} kgname - the KG to migrate
* @param {boolean} forceMigration - forces a migration to be run, even if not required
* @param {requestCallback} [callback]
* @returns {promise}
*/
migrateKG: /* istanbul ignore next */ function(kgname, forceMigration, callback){
var endpoint = '/kb/' + encodeURIComponent(kgname) + '/migrate';
if(forceMigration){
endpoint += '?force=true';
}
return this._ajax('POST', endpoint, null, callback);
},

/*
* App Config
*/
Expand Down