We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ea2377 commit 09271e5Copy full SHA for 09271e5
V2/time_tracker/_infrastructure/_db.py
@@ -2,8 +2,6 @@
2
3
from . import _config
4
5
-_TEST_DIALECT = "sqlite"
6
-
7
8
class DB():
9
config = _config.load_config()
@@ -19,6 +17,4 @@ def get_session(self):
19
17
self.metadata.create_all(self.engine)
20
18
if self.connection is None:
21
self.connection = self.engine.connect()
22
- if self.engine.dialect.name == _TEST_DIALECT:
23
- self.connection.execute("pragma foreign_keys=ON")
24
return self.connection
0 commit comments