implemented 'add reading list'

This commit is contained in:
Luis Ángel San Martín
2014-11-12 15:44:03 +01:00
parent 3be1e5d0d1
commit fdf0a2d047
8 changed files with 127 additions and 15 deletions

View File

@ -246,7 +246,7 @@ bool DataBaseManagement::createV8Tables(QSqlDatabase &database)
queryReadingList.prepare("CREATE TABLE reading_list ("
"id INTEGER PRIMARY KEY, "
"parentId INTEGER, "
"ordering INTEGER, " //only use it if the parentId is NULL
"ordering INTEGER DEFAULT 0, " //only use it if the parentId is NULL
"name TEXT NOT NULL, "
"finished BOOLEAN DEFAULT 0, "
"completed BOOLEAN DEFAULT 1, "