Bug 37558 - Statistics table does not have an id
Summary: Statistics table does not have an id
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on: 37540
Blocks:
  Show dependency treegraph
 
Reported: 2024-08-02 14:32 UTC by Nick Clemens (kidclamp)
Modified: 2024-09-30 04:36 UTC (History)
5 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Clemens (kidclamp) 2024-08-02 14:32:49 UTC
See bug 37540 - we have to manually stringify dates in the statistics objects when unblessing because we cannot refetch a fresh object from the DB as we have no id.

Should we add an update to add a primary key to the statistics table?
Comment 1 Jonathan Druart 2024-09-24 08:11:03 UTC
Yes, all tables should have one.
Comment 2 David Cook 2024-09-30 04:36:45 UTC
Yeah, I reckon this needs an autoincrement primary key id column.