forked from openlp/openlp
Listen to SQLAlchemy's warnings
This commit is contained in:
parent
bc872e0e87
commit
59f2cabae3
@ -288,6 +288,7 @@ class PathType(types.TypeDecorator):
|
|||||||
representation and store it as a Unicode type
|
representation and store it as a Unicode type
|
||||||
"""
|
"""
|
||||||
impl = types.Unicode
|
impl = types.Unicode
|
||||||
|
cache_ok = True
|
||||||
|
|
||||||
def coerce_compared_value(self, op, value):
|
def coerce_compared_value(self, op, value):
|
||||||
"""
|
"""
|
||||||
|
@ -388,9 +388,7 @@ def init_schema(url):
|
|||||||
try:
|
try:
|
||||||
class_mapper(Book)
|
class_mapper(Book)
|
||||||
except UnmappedClassError:
|
except UnmappedClassError:
|
||||||
mapper(Book, song_books_table, properties={
|
mapper(Book, song_books_table)
|
||||||
'songs': relation(Song, secondary=songs_songbooks_table)
|
|
||||||
})
|
|
||||||
try:
|
try:
|
||||||
class_mapper(MediaFile)
|
class_mapper(MediaFile)
|
||||||
except UnmappedClassError:
|
except UnmappedClassError:
|
||||||
|
Loading…
Reference in New Issue
Block a user