diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2018-12-06 08:44:01 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2018-12-06 08:44:01 +0300 |
commit | 7b6a14626960795b0acdf4a064cd3982d7704f2b (patch) | |
tree | 1f8b5fc7d7869c77e91a1f8dc2ab592b3f8de4ca /core/Db | |
parent | 1fe8a6ee582c2f61dc209b7df856695378007c23 (diff) |
Report tracking into wrong Site ID and missing token auth (#13493)
* log tracking failures
* added page
* tweak UI
* use a db column instead of option table to simplify code
* add system summary, notifiy super users by email, fixes, update, ...
* more fixes, needs tests next
* add widget for tracking failures
* ensure to not log any failure when visit is excluded
* some tests and fixes
* added tests
* added missing test
* apply review feedback
* fix tests
* trying to fix test
* fix tests
* fix update names
* fix tests
* Fix another test.
Diffstat (limited to 'core/Db')
-rw-r--r-- | core/Db/Schema/Mysql.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/Db/Schema/Mysql.php b/core/Db/Schema/Mysql.php index 557ec9795d..4fe9e6b560 100644 --- a/core/Db/Schema/Mysql.php +++ b/core/Db/Schema/Mysql.php @@ -292,6 +292,14 @@ class Mysql implements SchemaInterface PRIMARY KEY(`name`) ) ENGINE=$engine DEFAULT CHARSET=utf8 ", + 'tracking_failure' => "CREATE TABLE {$prefixTables}tracking_failure ( + `idsite` BIGINT(20) UNSIGNED NOT NULL , + `idfailure` SMALLINT UNSIGNED NOT NULL , + `date_first_occurred` DATETIME NOT NULL , + `request_url` MEDIUMTEXT NOT NULL , + PRIMARY KEY(`idsite`, `idfailure`) + ) ENGINE=$engine DEFAULT CHARSET=utf8 + ", ); return $tables; |