NAME
Kernel::System::DBUpdateLog – functions to manage ticket-message_id maps
DESCRIPTION
DESCRIPTION missing
PUBLIC INTERFACE
new()
Don't use the constructor directly, use the ObjectManager instead:
my $DBUpdateLogObject = $Kernel::OM->Get('Kernel::System::DBUpdateLog');
DBUpdateLogGet()
Returns errors which happened during the DBUpdate script
my $ErrorLog = $DBUpdateLogObject->DBUpdateLogGet();
Returns:
$ErrorLog = [
{
Message => "Something went wrong"
Module => "scripts::DBUpdate::MigrateAdminSyncCheckDebug"
CreateTime => "2025-04-25 10:28:03"
},
...
];
DBUpdateLogAdd()
Adds a new log entry
$DBUpdateLogObject->DBUpdateLogAdd(
Message => 'Error while updating Setting', # (required)
Module => 'MigrateAgentOutOfOfficeData', # (required) In which UpdateScript the error happened
);
Returns: $Result = 1
DBUpdateLogCleanUp()
Cleans up all the error logs
my $Success = $SysConfigObject->DBUpdateLogCleanUp();
Returns:
$Success = 1;
