Move files around.

This commit is contained in:
Darko
2015-05-28 12:36:00 +02:00
parent a5ea73deec
commit ae0434ac11
1403 changed files with 13 additions and 18 deletions
+27
View File
@@ -0,0 +1,27 @@
<?php
//This script moves releases from one category to another
require_once dirname(__FILE__) . '/../../www/config.php';
use newznab\db\DB;
$releases = new Releases();
$db = new DB();
//
// [1] move mp3 files from other misc into audio mp3
//
/*
$sql = "update releases inner join (
select distinct rf.releaseID
from releasefiles rf
inner join releases r on r.ID = rf.releaseID
where rf.name like '%.mp3'
and r.categoryID like '7%') x on x.releaseID = releases.ID
set releases.categoryID = 3010;";
*/
$db->exec($sql);