mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
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.
This commit is contained in:
parent
417bd1afa2
commit
0c61702213
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue