Ensure sqlite connection is set when initializing the database
issue5906 review26721002
This commit is contained in:
1 parent
972a1b6c91
commit
e2afba1e9a
1 file changed
+1
-1
@@ -303,7 +303,7 @@ class Database(DatabaseInterface):
|
||||
|
||||
def init(self):
|
||||
from trytond.modules import get_module_info
|
||||
with self._conn as conn:
|
||||
with self.get_connection() as conn:
|
||||
cursor = conn.cursor()
|
||||
sql_file = os.path.join(os.path.dirname(__file__), 'init.sql')
|
||||
with open(sql_file) as fp:
|
||||
|
||||
Reference in new issue
Block a user