chore: turn on foreign keys

This commit is contained in:
thomasabishop 2024-11-14 08:49:48 +00:00
parent 98255cd7a8
commit f7b7cc5144

View file

@ -16,6 +16,7 @@ class DatabaseService:
try:
self.connection = sqlite3.connect(f"{self.db_path}/{self.db_name}.db")
self.connection.execute("PRAGMA foreign_keys = ON")
print(colored("INFO Database connection established", "light_blue"))
return self.connection