Add a data migration to ensure that the number types are migrated to text in the db schema

This fixes a problem storing some text number formats in the db when the type is integer.
This commit is contained in:
Luis Ángel San Martín
2023-10-15 12:53:30 +02:00
parent 54fc070a2e
commit f319b00c70
5 changed files with 137 additions and 88 deletions

View File

@ -49,6 +49,7 @@ public:
static QSqlDatabase loadDatabase(QString path);
static QSqlDatabase loadDatabaseFromFile(QString path);
static bool createTables(QSqlDatabase &database);
static bool createComicInfoTable(QSqlDatabase &database, QString tableName);
static bool createV8Tables(QSqlDatabase &database);
static void exportComicsInfo(QString source, QString dest);