added create table for recordings

This commit is contained in:
Justin Eckenweber
2026-05-20 12:23:00 +02:00
parent b53a095034
commit 2e49193c28
+10
View File
@@ -46,6 +46,16 @@ try:
) )
''') ''')
cursor.execute('''
CREATE TABLE IF NOT EXISTS recordings
(
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
timestamp TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
file_path TEXT NOT NULL
)
''')
except pymysql.Error as error: except pymysql.Error as error:
print(error) print(error)
sys.exit(1) sys.exit(1)