mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix SA2.0 error: pass bind to create_all
This commit is contained in:
@@ -35,13 +35,11 @@ def init(
|
||||
engine_options = engine_options or {}
|
||||
# Create the database engine
|
||||
engine = build_engine(url, engine_options)
|
||||
# Connect the metadata to the database.
|
||||
metadata.bind = engine
|
||||
|
||||
result = ToolShedModelMapping([tool_shed.webapp.model], engine=engine)
|
||||
|
||||
if create_tables:
|
||||
metadata.create_all()
|
||||
metadata.create_all(bind=engine)
|
||||
|
||||
result.create_tables = create_tables
|
||||
|
||||
|
||||
Reference in New Issue
Block a user