mirror of
https://github.com/YACReader/yacreader
synced 2025-07-17 20:44:32 -04:00
PRAGMA foreign_keys = ON added on update, it seems that the query on database load doesn't work (weird)
parent!=0 check add to avoid crashes if the DB become corrupted.
This commit is contained in:
@ -92,7 +92,7 @@ void LibraryCreator::run()
|
||||
creation = false;
|
||||
return;
|
||||
}
|
||||
//QSqlQuery pragma("PRAGMA foreign_keys = ON",_database);
|
||||
QSqlQuery pragma("PRAGMA foreign_keys = ON",_database);
|
||||
_database.transaction();
|
||||
update(QDir(_source));
|
||||
_database.commit();
|
||||
|
Reference in New Issue
Block a user