update
This commit is contained in:
@@ -26,7 +26,8 @@ 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);
|
||||
""")
|
||||
|
||||
|
||||
@@ -42,6 +43,14 @@ CREATE TABLE IF NOT EXISTS data_NPM (
|
||||
)
|
||||
""")
|
||||
|
||||
# Create a table CO2
|
||||
cursor.execute("""
|
||||
CREATE TABLE IF NOT EXISTS data_CO2 (
|
||||
timestamp TEXT,
|
||||
CO2 INTEGER
|
||||
)
|
||||
""")
|
||||
|
||||
# Create a table BME280
|
||||
cursor.execute("""
|
||||
CREATE TABLE IF NOT EXISTS data_BME280 (
|
||||
|
||||
Reference in New Issue
Block a user