mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-21 05:43:19 -07:00
Added in an audit table. Since we are now allowing multiple users to change and modify things we need to audit this.
This commit is contained in:
parent
8dcb8022ab
commit
79086dcf45
4 changed files with 32 additions and 3 deletions
|
@ -42,6 +42,18 @@ CREATE TABLE IF NOT EXISTS Logs
|
|||
);
|
||||
CREATE UNIQUE INDEX IF NOT EXISTS Logs_Id ON Logs (Id);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS Audit
|
||||
(
|
||||
Id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
Date varchar(100) NOT NULL,
|
||||
Username varchar(100) NOT NULL,
|
||||
ChangeType varchar(100) NOT NULL,
|
||||
OldValue varchar(100),
|
||||
NewValue varchar(100),
|
||||
);
|
||||
CREATE UNIQUE INDEX IF NOT EXISTS Audit_Id ON Audit (Id);
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS DBInfo
|
||||
(
|
||||
SchemaVersion INTEGER
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue