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 (