[Koha-bugs] [Bug 31212] Datelastseen should be a datetime

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jul 26 04:36:06 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31212

Andreas Roussos <a.roussos at dataly.gr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |a.roussos at dataly.gr

--- Comment #3 from Andreas Roussos <a.roussos at dataly.gr> ---
Hi Michal,

I concur with Sally; your patch, as it stands, does not work 100%.
However, fear not! The Community is here to help! ;-)

Since you're changing a column definition in the DB, you may want
to have a look at these guidelines:
https://wiki.koha-community.org/wiki/Database_updates

The gist of it is that when you alter the database schema, you need
to accommodate for both
a) new installations (which you did by modifying the installer's DB
   structure in installer/data/mysql/kohastructure.sql), *and*
b) existing installations by means of creating an atomicupdate file.

Also, since the DATETIME column will now be able to store the exact
time the item was last seen down to the second, you'll have to ensure
the timestamp is stored with the correct accuracy in the DB.

Finally, don't forget the unit tests whenever you want to submit a
patch, as they can help you find oversights in your submitted code.
As usual, the details are in the Wiki:
https://wiki.koha-community.org/wiki/Unit_Tests#Good_practices_for_running_tests

I hope this helps!

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list