1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-08 07:36:32 +02:00

Issue #5382 Database change logging for Admin-UI. More to come..

This commit is contained in:
camer0n
2025-02-05 16:22:03 -08:00
parent e8dc885770
commit 73d4e28040
4 changed files with 463 additions and 2 deletions

View File

@@ -211,6 +211,25 @@ CREATE TABLE generic (
) ENGINE=InnoDB;
# --------------------------------------------------------
CREATE TABLE admin_history (
history_id int(10) unsigned NOT NULL auto_increment,
history_table varchar(64) NOT NULL default '',
history_pid varchar(64) NOT NULL default '',
history_record_id int(10) unsigned NOT NULL default '0',
history_action enum('delete','update') NOT NULL,
history_data JSON DEFAULT NULL,
history_user_id int(10) unsigned NOT NULL default '0',
history_datestamp int(10) unsigned NOT NULL default '0',
history_restored int(10) unsigned NOT NULL default '0',
PRIMARY KEY (history_id),
KEY history_table_record (history_table, history_record_id),
KEY history_datestamp (history_datestamp)
) ENGINE=InnoDB;
#
# Table structure for table `links` (navigation)
#