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

Fix no lock (again): create_engine_try_nolock

parent 44420a83
......@@ -150,11 +150,9 @@ def add_protocols(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 create_engine_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