From 59f2cabae3f1d156cb120616af173baf77f92e46 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Fri, 4 Feb 2022 14:12:12 -0700 Subject: [PATCH] Listen to SQLAlchemy's warnings --- openlp/core/lib/db.py | 1 + openlp/plugins/songs/lib/db.py | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/openlp/core/lib/db.py b/openlp/core/lib/db.py index 8d7301590..fc3ac69ff 100644 --- a/openlp/core/lib/db.py +++ b/openlp/core/lib/db.py @@ -288,6 +288,7 @@ class PathType(types.TypeDecorator): representation and store it as a Unicode type """ impl = types.Unicode + cache_ok = True def coerce_compared_value(self, op, value): """ diff --git a/openlp/plugins/songs/lib/db.py b/openlp/plugins/songs/lib/db.py index c23627d24..75917c55d 100644 --- a/openlp/plugins/songs/lib/db.py +++ b/openlp/plugins/songs/lib/db.py @@ -388,9 +388,7 @@ def init_schema(url): try: class_mapper(Book) except UnmappedClassError: - mapper(Book, song_books_table, properties={ - 'songs': relation(Song, secondary=songs_songbooks_table) - }) + mapper(Book, song_books_table) try: class_mapper(MediaFile) except UnmappedClassError: