aci/backend/migrate.py

12 lines
279 B
Python
Raw Normal View History

2024-02-17 21:47:42 +00:00
#!/usr/bin/env python3
import sqlite3
conn = sqlite3.connect('./checkin.db')
db = conn.cursor()
try:
db.execute("CREATE TABLE IF NOT EXISTS code_results (date text, time text, space text, activity text, code text, result boolean)")
finally:
db.close()
conn.close()