forked from platypush/platypush
No need for session.begin
in db.create_all
.
This commit is contained in:
parent
6fa179e769
commit
37722d12cd
1 changed files with 1 additions and 1 deletions
|
@ -530,7 +530,7 @@ class DbPlugin(Plugin):
|
|||
connection.execute(delete)
|
||||
|
||||
def create_all(self, engine, base):
|
||||
with self.get_session(engine, locked=True) as session, session.begin():
|
||||
with self.get_session(engine, locked=True) as session:
|
||||
base.metadata.create_all(session.connection())
|
||||
|
||||
@contextmanager
|
||||
|
|
Loading…
Reference in a new issue