From 0c6170221326e6f44569c0eeef9f748dcf7d8c20 Mon Sep 17 00:00:00 2001 From: Andrew Ekstedt Date: Fri, 30 Mar 2018 15:05:30 -0700 Subject: [PATCH] pass an explicit bind to table.create() This isn't really necessary, since pokedex.db.connect sets metadata.bind, but it's better to be explicit. --- pokedex/db/load.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pokedex/db/load.py b/pokedex/db/load.py index 5b04fcd..6e43429 100644 --- a/pokedex/db/load.py +++ b/pokedex/db/load.py @@ -193,7 +193,7 @@ def load(session, tables=[], directory=None, drop_tables=False, verbose=False, s print_start('Creating tables') for n, table in enumerate(table_objs): - table.create() + table.create(bind=engine) print_status('%s/%s' % (n, len(table_objs))) print_done()