mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-12 15:49:28 -08:00
* Creating of server side audit table for auditing actions such as password resets, account registrations and log queries. * Add migration script Add migration script for database * Update database script Update database script to reflect new audit table * Creating of server side audit table for auditing actions such as password resets, account registrations and log queries. * Add migration script Add migration script for database * Update database script Update database script to reflect new audit table * Corrected results column possible value(s). * Fixed migration script. * Added boolean audit logic Added enable/disable audit options Added audit functionality for forgot password * Added registration auditing Added registration auditing * Updated ActivateAccount Function Created clientid variable and used it in preporation for future potential protocol expansion. * Extended activation protocol Added clientid to activation command protocol * Typo correction Fix typo's * Missed type fix Found the infamous E! * Updated database function syntax Updated if/else syntax in db add audit function * Untabify content Untab files changed in PR
16 lines
595 B
SQL
16 lines
595 B
SQL
|
|
CREATE TABLE IF NOT EXISTS `cockatrice_audit` (
|
|
`id` int(7) unsigned zerofill NOT NULL auto_increment,
|
|
`id_server` tinyint(3) NOT NULL,
|
|
`name` varchar(35) NOT NULL,
|
|
`ip_address` varchar(255) NOT NULL,
|
|
`clientid` varchar(15) NOT NULL,
|
|
`incidentDate` datetime NOT NULL default '0000-00-00 00:00:00',
|
|
`action` varchar(35) NOT NULL,
|
|
`results` ENUM('fail', 'success') NOT NULL DEFAULT 'fail',
|
|
`details` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `user_name` (`name`)
|
|
) ENGINE=INNODB DEFAULT CHARSET=utf8;
|
|
|
|
UPDATE cockatrice_schema_version SET version=22 WHERE version=21; |