<p dir="ltr">I think it should be yellow </p>
<p dir="ltr">Chris </p>
<div class="gmail_quote">On 13/11/2014 4:52 pm, "David Cook" <<a href="mailto:dcook@prosentient.com.au">dcook@prosentient.com.au</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Actually, after looking at the `issues` and `reserves` tables, I'm really in favour of getting rid of "timestamp" columns and renaming them more contextually.<br>
<br>
In the case of `reserves`, I have no idea what `timestamp` means. There's already `reservedate`, `notificationdate`, `reminderdate`, `waitingdate`. It's probably `updated` in that case? As `reservedate` would be `created`?<br>
<br>
In the case of `issues`, there is already `date_due`, `lastreneweddate`, `returndate`, `issuedate`. I imagine `issuedate` would be `created`. It looks like `timestamp` is `updated` . As I look, it usually matches `lastreneweddate` although timestamp has time while the other does not.<br>
<br>
I wonder how much we actually use `timestamp` in the code...<br>
<br>
Of course, if we do change column names, then we'll be screwing up a lot of the existing SQL reports that people have out there which may or may not use timestamp for dating...<br>
<br>
David Cook<br>
Systems Librarian<br>
Prosentient Systems<br>
72/330 Wattle St, Ultimo, NSW 2007<br>
<br>
> -----Original Message-----<br>
> From: <a href="mailto:koha-devel-bounces@lists.koha-community.org">koha-devel-bounces@lists.koha-community.org</a> [mailto:<a href="mailto:koha-devel-">koha-devel-</a><br>
> <a href="mailto:bounces@lists.koha-community.org">bounces@lists.koha-community.org</a>] On Behalf Of Robin Sheat<br>
> Sent: Thursday, 13 November 2014 1:03 PM<br>
> To: <a href="mailto:koha-devel@lists.koha-community.org">koha-devel@lists.koha-community.org</a><br>
> Subject: Re: [Koha-devel] Ambiguous column names<br>
><br>
> David Cook schreef op do 13-11-2014 om 12:12 [+1100]:<br>
> > I think the best option, if we were to change away from timestamp,<br>
> > would have to be "lastmodified", as timestamp types will get updated<br>
> > after every insert/update, I believe. But since they'd all be called<br>
> > "lastmodified", changing it from "timestamp" would become a bit moot,<br>
> > I think.<br>
><br>
> Well, I was thinking both, "created" and "updated." So you know when the<br>
> record was created, and when it was last changed. Both very handy for<br>
> simple auditing or bug finding.<br>
><br>
> It's possible to have a timestamp field that is initialised to the current date<br>
> automatically on creation, and another that is auto updated.<br>
><br>
> <a href="http://dev.mysql.com/doc/refman/5.1/en/timestamp-initialization.html" target="_blank">http://dev.mysql.com/doc/refman/5.1/en/timestamp-initialization.html</a><br>
><br>
> This would nicely mean that there's no code at all in Koha required to<br>
> maintain this.<br>
><br>
> Anyway, I was just sticking my oar in, I've no desire to bikeshed it into the<br>
> ground, anything is better than nothing :)<br>
><br>
> --<br>
> Robin Sheat<br>
> Catalyst IT Ltd.<br>
> ✆ <a href="tel:%2B64%204%20803%202204" value="+6448032204">+64 4 803 2204</a><br>
> GPG: 5FA7 4B49 1E4D CAA4 4C38  8505 77F5 B724 F871 3BDF<br>
<br>
<br>
_______________________________________________<br>
Koha-devel mailing list<br>
<a href="mailto:Koha-devel@lists.koha-community.org">Koha-devel@lists.koha-community.org</a><br>
<a href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" target="_blank">http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br>
website : <a href="http://www.koha-community.org/" target="_blank">http://www.koha-community.org/</a><br>
git : <a href="http://git.koha-community.org/" target="_blank">http://git.koha-community.org/</a><br>
bugs : <a href="http://bugs.koha-community.org/" target="_blank">http://bugs.koha-community.org/</a></blockquote></div>