From 0549471669574fde2b000988f6e085cdcd7b9b79 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 25 Feb 2025 15:25:21 +0100 Subject: [PATCH] update --- sqlite/create_db.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sqlite/create_db.py b/sqlite/create_db.py index 4b59de4..aa0b060 100755 --- a/sqlite/create_db.py +++ b/sqlite/create_db.py @@ -26,10 +26,12 @@ CREATE TABLE IF NOT EXISTS timestamp_table ( ) """) cursor.execute(""" - INSERT INTO timestamp_table (id, last_updated) VALUES (1, CURRENT_TIMESTAMP); + INSERT OR REPLACE INTO timestamp_table (id, last_updated) + VALUES (1, CURRENT_TIMESTAMP); """) + # Create a table NPM cursor.execute(""" CREATE TABLE IF NOT EXISTS data_NPM (