2022-02-02 04:05:31 +00:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
schemaCol: 'EVENT_SCHEMA',
|
2022-02-07 10:46:13 +00:00
|
|
|
nameCol: 'EVENT_NAME',
|
|
|
|
escapeCols: [
|
|
|
|
'starts',
|
|
|
|
'ends',
|
2022-02-07 14:43:12 +00:00
|
|
|
'executeAt',
|
|
|
|
'comment'
|
|
|
|
],
|
|
|
|
formatter(params) {
|
|
|
|
let status;
|
|
|
|
switch(params.status){
|
|
|
|
case 'DISABLED':
|
|
|
|
status = 'DISABLE';
|
|
|
|
break;
|
|
|
|
case 'SLAVESIDE_DISABLED':
|
|
|
|
status = 'DISABLE ON SLAVE';
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
status = 'ENABLE'
|
|
|
|
}
|
|
|
|
params.status = status;
|
|
|
|
}
|
2022-02-02 04:05:31 +00:00
|
|
|
};
|