From 01cdc70f9c8fd98d2ea49bcfba9005f2797c815d Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Thu, 28 Jan 2016 22:59:48 +0100 Subject: [PATCH] introduce comments read marke tables, comes with user cleanup after deletion --- db_structure.xml | 43 ++++++++++ lib/private/comments/manager.php | 103 ++++++++++++++++++++--- lib/private/user/user.php | 1 + lib/public/comments/icommentsmanager.php | 19 +++++ tests/lib/comments/fakemanager.php | 4 + tests/lib/comments/manager.php | 57 ++++++++++++- version.php | 2 +- 7 files changed, 214 insertions(+), 15 deletions(-) diff --git a/db_structure.xml b/db_structure.xml index 99bfa519b4..ea1b89e28d 100644 --- a/db_structure.xml +++ b/db_structure.xml @@ -1580,6 +1580,49 @@ + + + *dbprefix*comments_read_markers + + + + + user_id + text + + true + 64 + + + + marker_datetime + timestamp + + false + + + + object_type + text + + true + 64 + + + + object_id + text + + true + 64 + + + + +
+