diff --git a/dspace_statistics_api/indexer.py b/dspace_statistics_api/indexer.py index f9628e9..40b0506 100644 --- a/dspace_statistics_api/indexer.py +++ b/dspace_statistics_api/indexer.py @@ -264,7 +264,7 @@ with DatabaseManager() as db: # create table to store item views and downloads cursor.execute( """CREATE TABLE IF NOT EXISTS items - (id INT PRIMARY KEY, views INT DEFAULT 0, downloads INT DEFAULT 0)""" + (id UUID PRIMARY KEY, views INT DEFAULT 0, downloads INT DEFAULT 0)""" ) # commit the table creation before closing the database connection