Fixed db connection
This commit is contained in:
parent
d57fd10718
commit
dcbcb67ce8
@ -33,6 +33,8 @@ class DatabaseContext(DatabaseContextABC):
|
|||||||
for table in self._tables:
|
for table in self._tables:
|
||||||
self._db.cursor.execute(table.get_create_string())
|
self._db.cursor.execute(table.get_create_string())
|
||||||
|
|
||||||
|
self.save_changes()
|
||||||
|
|
||||||
def save_changes(self):
|
def save_changes(self):
|
||||||
self._db.server.commit()
|
self._db.server.commit()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user