mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
[Eventlog] Show extra data in log table.
This commit is contained in:
parent
f7d0524f57
commit
8b1eccc48d
12 changed files with 351 additions and 2 deletions
|
@ -36,4 +36,31 @@ class DatabaseUpdatedLogEntry extends AbstractLogEntry
|
|||
throw new LogEntryObsoleteException();
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the database update was successful.
|
||||
* @return bool
|
||||
*/
|
||||
public function isSuccessful(): bool
|
||||
{
|
||||
return $this->extra['s'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the database version before update.
|
||||
* @return int
|
||||
*/
|
||||
public function getOldVersion(): int
|
||||
{
|
||||
return $this->extra['o'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the (target) database version after update.
|
||||
* @return int
|
||||
*/
|
||||
public function getNewVersion(): int
|
||||
{
|
||||
return $this->extra['n'];
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue