ElkArte Community

Title: Stop naming every table log_*
Post by: Joshua Dickerson on December 09, 2015, 03:49:13 am
I know it's completely pedantic. I just noticed how many log tables there are haha

log_comments: they are comments for warning. So, "warning_comments"
log_group_requests: "group_requests"
log_likes: "likes" or "message_likes"
log_member_notices: "member_notices"
log_mentions: mentions
log_online: online_users
log_polls: poll_votes

There's a lot more but the point is there. Everything can be a log if you look at it like it but if it is more than tracking a change, it isn't. A log never gets updated. You can truncate it but the point should be to only insert in to it. Objects aren't changes, they are objects.

Not expecting changes (unless you want to haha) though.
Title: Re: Stop naming every table log_*
Post by: Jorin on December 09, 2015, 03:55:56 am
I think we need a new table called log_log where we log all we change in the other log tables.  ;)
Title: Re: Stop naming every table log_*
Post by: ahrasis on December 09, 2015, 07:41:10 am
What's wrong? I'd prefer it that way. Easy to find log at log_*.
Title: Re: Stop naming every table log_*
Post by: Joshua Dickerson on December 09, 2015, 01:02:52 pm
a) they aren't logs. They are tables containing objects
b) if you remove log_* you can find it even easier because they'll be ordered alphabetically
Title: Re: Stop naming every table log_*
Post by: live627 on December 10, 2015, 09:46:39 pm
Quote from: Jorin – I think we need a new table called log_log where we log all we change in the other log tables.  ;)
There aren't enough trees for that many logs :D
Title: Re: Stop naming every table log_*
Post by: Jorin on December 11, 2015, 01:24:27 am
prust[1]
which means something like rofl
Title: Re: Stop naming every table log_*
Post by: Flavio93Zena on December 17, 2015, 05:32:14 pm
Quote from: Jorin – I think we need a new table called log_log where we log all we change in the other log tables.  ;)
(http://cdn.meme.am/instances/62961589.jpg)