[PATCH] D40704: Import db.migrate module in update command.
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 1 01:58:32 PST 2017
fhahn created this revision.
This fixes a NameError because lnt is not defined.
https://reviews.llvm.org/D40704
Files:
lnt/lnttool/main.py
Index: lnt/lnttool/main.py
===================================================================
--- lnt/lnttool/main.py
+++ lnt/lnttool/main.py
@@ -204,6 +204,8 @@
@click.option("--show-sql", is_flag=True, help="show all SQL queries")
def action_update(db_path, show_sql):
"""create and or auto-update the given database"""
+ import lnt.server.db.migrate
+
init_logger(logging.INFO, show_sql=show_sql, stream=sys.stderr)
# Update the database.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40704.125086.patch
Type: text/x-patch
Size: 465 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171201/6e3fc702/attachment.bin>
More information about the llvm-commits
mailing list