mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
FDB table with history capabilities (#9804)
* Migration script and data feeding * Adding the columns in the GUI * build schema * update FDB test data * Use of timestamps() * ignore created_at and updated_at in tests, and regenerate test impacted * daily.sh does the cleaning * space cleaning codeclimate * Use carbon instead of str-val * handle when $fdb_entry->updated_at and created at are null * handle when $fdb_entry->updated_at and created at are null (force travis rerun) * Doc update * Doc update
This commit is contained in:
@@ -90,6 +90,11 @@ if ($options['f'] === 'syslog') {
|
||||
}
|
||||
}
|
||||
|
||||
if ($options['f'] === 'ports_fdb') {
|
||||
$ret = lock_and_purge('ports_fdb', 'updated_at < DATE_SUB(NOW(), INTERVAL ? DAY)');
|
||||
exit($ret);
|
||||
}
|
||||
|
||||
if ($options['f'] === 'eventlog') {
|
||||
$ret = lock_and_purge('eventlog', 'datetime < DATE_SUB(NOW(), INTERVAL ? DAY)');
|
||||
exit($ret);
|
||||
|
Reference in New Issue
Block a user