edited error in places table to change fields to foreign keys

This commit is contained in:
ellie 2022-10-30 00:07:26 +01:00
parent 8e5f12c03c
commit f905d9ccc4

View file

@ -90,7 +90,7 @@ class DB:
''')
cursor.execute('''
CREATE TABLE IF NOT EXISTS places_visited
([ID] INTEGER PRIMARY KEY, [userID] INTEGER, [entryID] INTEGER)
([ID] INTEGER PRIMARY KEY, [userID] INTEGER FOREIGN KEY, [entryID] INTEGER FOREIGN KEY)
''')
cursor.commit()