Ticket #3419: mytharchive_filesize_patch.diff
File mytharchive_filesize_patch.diff, 1.3 KB (added by , 17 years ago) |
---|
-
mytharchive/mytharchive/dbcheck.cpp
12 12 #include "dbcheck.h" 13 13 14 14 15 const QString currentDatabaseVersion = "100 0";15 const QString currentDatabaseVersion = "1001"; 16 16 17 17 static bool UpdateDBVersionNumber(const QString &newnumber) 18 18 { … … 77 77 if (dbver == "") 78 78 { 79 79 VERBOSE(VB_IMPORTANT, "Inserting MythArchive initial database information."); 80 } 80 81 81 82 const QString updates[] = { 82 83 "DROP TABLE IF EXISTS archiveitems;", 83 84 84 85 "CREATE TABLE IF NOT EXISTS archiveitems (" … … 89 90 " description TEXT," 90 91 " startdate VARCHAR(30)," 91 92 " starttime VARCHAR(30)," 92 " size INT UNSIGNED NOT NULL,"93 " size BIGINT UNSIGNED NOT NULL," 93 94 " filename TEXT NOT NULL," 94 95 " hascutlist BOOL NOT NULL DEFAULT 0," 95 96 " cutlist TEXT DEFAULT ''," … … 97 98 ");", 98 99 "" 99 100 }; 100 if (!performActualUpdate(updates, "1000", dbver)) 101 return false; 102 } 101 if (!performActualUpdate(updates, currentDatabaseVersion, dbver)) 102 return false; 103 103 104 104 return true; 105 105 }