aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/General/history/history.cpp2
-rw-r--r--src/plugins/General/library/library.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/General/history/history.cpp b/src/plugins/General/history/history.cpp
index 15c841c1d..89f732f05 100644
--- a/src/plugins/General/history/history.cpp
+++ b/src/plugins/General/history/history.cpp
@@ -120,7 +120,7 @@ bool History::createTables()
bool ok = query.exec("CREATE TABLE IF NOT EXISTS track_history(ID INTEGER PRIMARY KEY AUTOINCREMENT,"
"Timestamp TIMESTAMP NOT NULL,"
"Title TEXT, Artist TEXT, AlbumArtist TEXT, Album TEXT, Comment TEXT, Genre TEXT, Composer TEXT,"
- "Year INTEGER, Track INTEGER, DiscNumber INTEGER, Duration INTEGER, URL BLOB)");
+ "Year INTEGER, Track INTEGER, DiscNumber TEXT, Duration INTEGER, URL BLOB)");
if(!ok)
qWarning("History: unable to create table, error: %s", qPrintable(query.lastError().text()));
diff --git a/src/plugins/General/library/library.cpp b/src/plugins/General/library/library.cpp
index b3799dc4e..adcf2eb7a 100644
--- a/src/plugins/General/library/library.cpp
+++ b/src/plugins/General/library/library.cpp
@@ -127,7 +127,7 @@ bool Library::createTables()
"ID INTEGER PRIMARY KEY AUTOINCREMENT,"
"Timestamp TIMESTAMP NOT NULL,"
"Title TEXT, Artist TEXT, AlbumArtist TEXT, Album TEXT, Comment TEXT, Genre TEXT, Composer TEXT,"
- "Year INTEGER, Track INTEGER, DiscNumber INTEGER, Duration INTEGER, "
+ "Year INTEGER, Track INTEGER, DiscNumber TEXT, Duration INTEGER, "
"AudioInfo BLOB, URL TEXT, FilePath TEXT, SearchString TEXT)");
if(!ok)