forked from openlp/openlp
Fix db flushing for songs
This commit is contained in:
parent
2428e9a46a
commit
f6a6a7a4fc
@ -72,7 +72,7 @@ def init_schema(url):
|
|||||||
``url``
|
``url``
|
||||||
The database to setup
|
The database to setup
|
||||||
"""
|
"""
|
||||||
session, metadata = init_db(url)
|
session, metadata = init_db(url, False)
|
||||||
|
|
||||||
# Definition of the "authors" table
|
# Definition of the "authors" table
|
||||||
authors_table = Table(u'authors', metadata,
|
authors_table = Table(u'authors', metadata,
|
||||||
@ -181,4 +181,4 @@ def init_schema(url):
|
|||||||
mapper(Topic, topics_table)
|
mapper(Topic, topics_table)
|
||||||
|
|
||||||
metadata.create_all(checkfirst=True)
|
metadata.create_all(checkfirst=True)
|
||||||
return session
|
return session
|
||||||
|
Loading…
Reference in New Issue
Block a user