From 89341dc13fd30bed744e052aa5f82deb4d4a5b93 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sun, 7 Feb 2016 14:12:58 -0500 Subject: Use only a single object type for log messages Eliminate redunancy in the data model by using just one object type to denote 'log' instead of parent object specfic types (eg: log-user, log-group, log-pad, ....). This is a redundancy because the type of the parent can be quired simply by following the log entry's parent ptr and assessing its type value. --- schema.sql | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/schema.sql b/schema.sql index 8902fbf..fcca540 100644 --- a/schema.sql +++ b/schema.sql @@ -60,11 +60,7 @@ CREATE TABLE `object` ( 'stage', 'issue', 'message', - 'log-user', - 'log-group', - 'log-admin', - 'log-pad', - 'log-issue' + 'log', ) NOT NULL, PRIMARY KEY (`guid`) ); -- cgit v1.2.3