diff --git a/openlp/plugins/songs/lib/upgrade.py b/openlp/plugins/songs/lib/upgrade.py index c2075bd2f..1871ca718 100644 --- a/openlp/plugins/songs/lib/upgrade.py +++ b/openlp/plugins/songs/lib/upgrade.py @@ -159,6 +159,4 @@ def upgrade_6(session, metadata): op.drop_column('songs', 'song_book_id') op.drop_column('songs', 'song_number') # Finally, clean up our mess in people's databases - songs_songbooks = Table('songs_songbooks', metadata, autoload=True) - del_query = songs_songbooks.delete().where(songs_songbooks.c.songbook_id == 0) - op.execute(del_query) + op.execute('DELETE FROM songs_songbooks WHERE songbook_id = 0')