mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-02 19:28:55 +00:00
Move files around.
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user