12 lines
329 B
Python
12 lines
329 B
Python
#!/usr/bin/env python3
|
|
import sqlite3
|
|
|
|
def run_migrations():
|
|
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()
|