Skip to content

Commit

Permalink
Merge pull request #411 from roha4000/master
Browse files Browse the repository at this point in the history
IDBConnection does not contain "prepareQuery"
  • Loading branch information
MorrisJobke committed Oct 27, 2015
2 parents aca46ba + 9d54405 commit 5d03f2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions command/resetdatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ private function cleanupRelation() {
$sql = 'DELETE FROM `*PREFIX*music_album_artists` ' .
'WHERE `album_id` NOT IN (SELECT `id` FROM `*PREFIX*music_albums`) ' .
'OR `artist_id` NOT IN (SELECT `id` FROM `*PREFIX*music_artists`)';
$this->db->prepareQuery($sql)->execute();
$this->db->prepare($sql)->execute();

$sql = 'DELETE FROM `*PREFIX*music_playlist_tracks` ' .
'WHERE `track_id` NOT IN (SELECT `id` FROM `*PREFIX*music_tracks`)';
$this->db->prepareQuery($sql)->execute();
$this->db->prepare($sql)->execute();
}

}

0 comments on commit 5d03f2b

Please # to comment.