Commit e28c0c7b authored by Marcin Siodelski's avatar Marcin Siodelski

[#89,!22] Added log_message column to audit MySQL tables.

parent 20bc3ce1
......@@ -482,7 +482,7 @@ EOF
run_statement "dhcp4_server" "$qry"
# table: dhcp4_audit
qry="select id, object_type, object_id, modification_type, modification_ts from dhcp4_audit"
qry="select id, object_type, object_id, modification_type, modification_ts, log_message from dhcp4_audit"
run_statement "dhcp4_audit" "$qry"
# table: dhcp4_global_parameter
......@@ -534,7 +534,7 @@ EOF
run_statement "dhcp6_server" "$qry"
# table: dhcp6_audit
qry="select id, object_type, object_id, modification_type, modification_ts from dhcp6_audit"
qry="select id, object_type, object_id, modification_type, modification_ts, log_message from dhcp6_audit"
run_statement "dhcp6_audit" "$qry"
# table: dhcp6_global_parameter
......
......@@ -808,6 +808,7 @@ CREATE TABLE IF NOT EXISTS dhcp4_audit (
object_id BIGINT(20) UNSIGNED NOT NULL,
modification_type TINYINT(1) NOT NULL,
modification_ts TIMESTAMP NOT NULL,
log_message TEXT,
PRIMARY KEY (id),
KEY key_dhcp4_audit_by_modification_ts (modification_ts),
KEY fk_dhcp4_audit_modification_type (modification_type),
......@@ -1048,6 +1049,7 @@ CREATE TABLE IF NOT EXISTS dhcp6_audit (
object_id BIGINT(20) UNSIGNED NOT NULL,
modification_type TINYINT(1) NOT NULL,
modification_ts TIMESTAMP NOT NULL,
log_message TEXT,
PRIMARY KEY (id),
KEY key_dhcp6_audit_modification_ts (modification_ts),
KEY fk_dhcp6_audit_modification_type (modification_type),
......
......@@ -148,6 +148,7 @@ CREATE TABLE IF NOT EXISTS dhcp4_audit (
object_id BIGINT(2) UNSIGNED NOT NULL,
modification_type TINYINT(1) NOT NULL,
modification_ts TIMESTAMP NOT NULL,
log_message TEXT,
PRIMARY KEY (id),
KEY key_dhcp4_audit_by_modification_ts (modification_ts),
KEY fk_dhcp4_audit_modification_type (modification_type),
......@@ -373,6 +374,7 @@ CREATE TABLE IF NOT EXISTS dhcp6_audit (
object_id BIGINT(20) UNSIGNED NOT NULL,
modification_type TINYINT(1) NOT NULL,
modification_ts TIMESTAMP NOT NULL,
log_message TEXT,
PRIMARY KEY (id),
KEY key_dhcp6_audit_modification_ts (modification_ts),
KEY fk_dhcp6_audit_modification_type (modification_type),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment