Skip to content

Commit c09437b

Browse files
committed
refactor: TT-404 revert changes _db.py
1 parent 94eca99 commit c09437b

File tree

1 file changed

+0
-4
lines changed
  • V2/time_tracker/_infrastructure

1 file changed

+0
-4
lines changed

V2/time_tracker/_infrastructure/_db.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
from . import _config
44

5-
_TEST_DIALECT = "sqlite"
6-
75

86
class DB():
97
config = _config.load_config()
@@ -19,6 +17,4 @@ def get_session(self):
1917
self.metadata.create_all(self.engine)
2018
if self.connection is None:
2119
self.connection = self.engine.connect()
22-
if self.engine.dialect.name == _TEST_DIALECT:
23-
self.connection.execute("pragma foreign_keys=ON")
2420
return self.connection

0 commit comments

Comments
 (0)