Skip to content

Instantly share code, notes, and snippets.

@bserem
Created April 28, 2018 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bserem/40f2021ace59255b586bde04264061fd to your computer and use it in GitHub Desktop.
Save bserem/40f2021ace59255b586bde04264061fd to your computer and use it in GitHub Desktop.
Change paths of files in MIXXX sqlite dabatase
/**
*Looks for directory *750GB* in the path and removes it for paths.
* Based on that you can do any replacements.
*/
UPDATE track_locations
SET location = replace (location, '750GB/', '')
where
location LIKE '%750G%';
UPDATE track_locations
SET directory = replace (directory, '750GB/', '')
where
directory LIKE '%750G%';
UPDATE directories
SET directory = replace (directory, '750GB/', '')
where
directory LIKE '%750G%';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment