diff --git a/redbot/cogs/audio/playlists.py b/redbot/cogs/audio/playlists.py index d6c5b54dd..af3495cc6 100644 --- a/redbot/cogs/audio/playlists.py +++ b/redbot/cogs/audio/playlists.py @@ -44,15 +44,9 @@ PRAGMA temp_store = 2; _PRAGMA_UPDATE_journal_mode = """ PRAGMA journal_mode = wal; """ -_PRAGMA_UPDATE_wal_autocheckpoint = """ -PRAGMA wal_autocheckpoint; -""" _PRAGMA_UPDATE_read_uncommitted = """ PRAGMA read_uncommitted = 1; """ -_PRAGMA_UPDATE_optimize = """ -PRAGMA optimize = 1; -""" _CREATE_TABLE = """ CREATE TABLE IF NOT EXISTS playlists ( @@ -173,7 +167,9 @@ VALUES ON CONFLICT (scope_type, playlist_id, scope_id) DO UPDATE SET - playlist_name = excluded.playlist_name, playlist_url = excluded.playlist_url, tracks = excluded.tracks; + playlist_name = excluded.playlist_name, + playlist_url = excluded.playlist_url, + tracks = excluded.tracks; """ @@ -207,12 +203,10 @@ class Database: self.cursor = self._database.cursor() self.cursor.execute(_PRAGMA_UPDATE_temp_store) self.cursor.execute(_PRAGMA_UPDATE_journal_mode) - self.cursor.execute(_PRAGMA_UPDATE_wal_autocheckpoint) self.cursor.execute(_PRAGMA_UPDATE_read_uncommitted) self.cursor.execute(_CREATE_TABLE) def close(self): - self.cursor.execute(_PRAGMA_UPDATE_optimize) self._database.close() @staticmethod