default/special lists and labels are loaded from db

This commit is contained in:
Luis Ángel San Martín
2014-11-10 23:33:11 +01:00
parent 0db866ddf1
commit a66b360456
10 changed files with 92 additions and 38 deletions

View File

@ -228,7 +228,7 @@ bool DataBaseManagement::createV8Tables(QSqlDatabase &database)
//8.0> tables
//LABEL
QSqlQuery queryLabel(database);
queryLabel.prepare("CREATE TABLE label (id INTEGER PRIMARY KEY, name TEXT NOT NULL, color TEXT NOT NULL)");
queryLabel.prepare("CREATE TABLE label (id INTEGER PRIMARY KEY, name TEXT NOT NULL, color TEXT NOT NULL, ordering INTEGER NOT NULL)"); //order depends on the color
success = success && queryLabel.exec();
//COMIC LABEL