Migrated links, lyrics and properties
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import sqlite3
|
||||
from collections.abc import Iterator
|
||||
from contextlib import contextmanager
|
||||
from typing import Iterator, Optional
|
||||
|
||||
from folkugat_web.config.db import DB_FILE
|
||||
|
||||
@@ -13,6 +13,7 @@ def get_connection(con: Connection | None = None) -> Iterator[Connection]:
|
||||
yield con
|
||||
else:
|
||||
con = sqlite3.connect(DB_FILE)
|
||||
_ = con.execute('PRAGMA foreign_keys = ON;')
|
||||
try:
|
||||
yield con
|
||||
con.commit()
|
||||
|
||||
Reference in New Issue
Block a user