Commit 60964c8f authored by André Anjos's avatar André Anjos 💬
Browse files

[create] Small fix to import

parent f40f87bd
...@@ -112,7 +112,7 @@ def add_protocols(session, verbose): ...@@ -112,7 +112,7 @@ def add_protocols(session, verbose):
def create_tables(args): def create_tables(args):
"""Creates all necessary tables (only to be used at the first time)""" """Creates all necessary tables (only to be used at the first time)"""
from bob.db.utils import create_engine_try_nolock from bob.db.base.utils import create_engine_try_nolock
engine = create_engine_try_nolock(args.type, args.files[0], echo=(args.verbose > 2)) engine = create_engine_try_nolock(args.type, args.files[0], echo=(args.verbose > 2))
Base.metadata.create_all(engine) Base.metadata.create_all(engine)
...@@ -122,7 +122,7 @@ def create_tables(args): ...@@ -122,7 +122,7 @@ def create_tables(args):
def create(args): def create(args):
"""Creates or re-creates this database""" """Creates or re-creates this database"""
from bob.db.utils import session_try_nolock from bob.db.base.utils import session_try_nolock
dbfile = args.files[0] dbfile = args.files[0]
......
Markdown is supported
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