]> Some of my projects - localmylist.git/commitdiff
Add missing columns to Database::getFileByPath
authorAPTX <marek321@gmail.com>
Sun, 5 May 2013 00:46:43 +0000 (02:46 +0200)
committerAPTX <marek321@gmail.com>
Sun, 5 May 2013 00:46:43 +0000 (02:46 +0200)
localmylist/database.cpp

index 0bab851d232f9e00f30b2f4666eee521af1115c1..a1a502f9b62fde19820fb22734907969536cc449 100644 (file)
@@ -556,9 +556,9 @@ File Database::getFileByPath(const QString &path)
        QString mappedPath = MyList::instance()->mapPathToSource(path);
 
        QSqlQuery &q = prepare(
-       "SELECT f.fid, f.eid, f.aid, f.gid, f.entry_added, f.anidb_update, f.entry_update, f.my_update, "
+       "SELECT f.fid, f.eid, f.aid, f.gid, f.lid, f.entry_added, f.anidb_update, f.entry_update, f.my_update, "
        "               f.ed2k, f.size, f.length, f.extension, f.group_name, f.group_name_short, f.crc, "
-       "               f.release_date, f.version, f.censored, f.source, f.quality, f.resolution, "
+       "               f.release_date, f.version, f.censored, f.deprecated, f.source, f.quality, f.resolution, "
        "               f.video_codec, f.audio_codec, f.audio_language, f.subtitle_language, f.aspect_ratio, "
        "               f.my_watched, f.my_state, f.my_file_state, f.my_storage, f.my_source, f.my_other "
        "       FROM file f "