Rename preid to predb_id in releases table and in classes and scripts.

This commit is contained in:
DariusIII
2016-05-10 09:17:59 +02:00
parent bdfa790e64
commit 90b134761f
26 changed files with 108 additions and 92 deletions
@@ -626,7 +626,7 @@ class ProcessAdditional
$this->_releases = $this->pdo->query(
sprintf(
'
SELECT r.id, r.guid, r.name, c.disablepreview, r.size, r.groupid, r.nfostatus, r.completion, r.categories_id, r.searchname, r.preid
SELECT r.id, r.guid, r.name, c.disablepreview, r.size, r.groupid, r.nfostatus, r.completion, r.categories_id, r.searchname, r.predb_id
FROM releases r
LEFT JOIN categories c ON c.id = r.categories_id
WHERE r.nzbstatus = 1
@@ -1805,7 +1805,7 @@ class ProcessAdditional
if (isset($track['Album']) && isset($track['Performer'])) {
if (NN_RENAME_MUSIC_MEDIAINFO && $this->_release['preid'] == 0) {
if (NN_RENAME_MUSIC_MEDIAINFO && $this->_release['predb_id'] == 0) {
// Make the extension upper case.
$ext = strtoupper($fileExtension);
@@ -2347,7 +2347,7 @@ class ProcessAdditional
r.id AS releaseid
FROM releases r
WHERE r.isrenamed = 0
AND r.preid = 0
AND r.predb_id = 0
AND r.id = %d',
$this->_release['id']
)
@@ -2471,7 +2471,7 @@ class ProcessAdditional
'
UPDATE releases
SET videos_id = 0, tv_episodes_id = 0, imdbid = NULL, musicinfoid = NULL,
consoleinfoid = NULL, bookinfoid = NULL, anidbid = NULL, preid = 0,
consoleinfoid = NULL, bookinfoid = NULL, anidbid = NULL, predb_id = 0,
searchname = %s, isrenamed = 1, iscategorized = 1, proc_files = 1, categories_id = %d
WHERE id = %d',
$newTitle,