Commit 56998019 authored by Laurent EL SHAFEY's avatar Laurent EL SHAFEY
Browse files

Fix no lock (again): create_engine_try_nolock

parent c3248d25
......@@ -1665,11 +1665,9 @@ def add_subworldfiles(session):
def create_tables(args):
"""Creates all necessary tables (only to be used at the first time)"""
from bob.db.utils import connection_string
from bob.db.utils import connection_string_try_nolock
from sqlalchemy import create_engine
engine = create_engine(connection_string(args.type, args.files[0]),
echo=(args.verbose >= 2))
engine = create_engine_try_nolock(args.type, args.files[0], echo=(args.verbose >= 2))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment