mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-09 07:36:48 +02:00
Clear out old non-servent and non-file resulthints
This commit is contained in:
11
data/sql/dbmigrate-28_to_29.sql
Normal file
11
data/sql/dbmigrate-28_to_29.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
-- Script to migate from db version 28 to 29.
|
||||
--
|
||||
-- The resulthint field used to store both servent://, file:// and all other urls
|
||||
-- but all non-servent:// and file:// urls were filtered out. since we now are actually
|
||||
-- using http:// resulthints, we need to weed out the 'bad ones'
|
||||
|
||||
-- So remoev all non-file:// or servent:// resulthints
|
||||
|
||||
UPDATE playlist_item SET result_hint = "" WHERE playlist_item.guid IN (SELECT guid FROM playlist_item WHERE result_hint NOT LIKE "file://%" AND result_hint NOT LIKE "servent://%");
|
||||
|
||||
UPDATE settings SET v = '29' WHERE k == 'schema_version';
|
Reference in New Issue
Block a user