Name
global.AgileMadridUpgradeHelper
Description
No description available
Script
var AgileMadridUpgradeHelper = Class.create();
AgileMadridUpgradeHelper.prototype = {
initialize: function() {},
changeDefaultValue: function(table, column, oldValue, newValue) {
var dictionaryRecord = new GlideRecord('sys_dictionary');
dictionaryRecord.addQuery('name', table);
dictionaryRecord.addQuery('element', column);
dictionaryRecord.addQuery('default_value', oldValue);
dictionaryRecord.query();
if (dictionaryRecord.next()) {
dictionaryRecord.setValue('default_value', newValue);
dictionaryRecord.update();
}
},
populateGlobalRank: function(tableName, column, batchSize, startIndex, blockSize, encodedQuery, orderByField, orderDesc) {
var globalRankHelper = new GlobalRankHelper();
globalRankHelper.populateGlobalRank(tableName, column, batchSize, startIndex, blockSize, encodedQuery, orderByField, orderDesc);
},
type: 'AgileMadridUpgradeHelper'
};
Sys ID
55b1123e5b23130036c32c1cf0f91a4b