From 212dc7b60efa2669ac147b79c8c4f5145bdd9128 Mon Sep 17 00:00:00 2001 From: Erik Brommers <1458944+eb1@users.noreply.github.com> Date: Thu, 13 Feb 2025 10:12:44 -0800 Subject: [PATCH] Fix datatype of project properties lastAdaptedBookID / ChapterID -- integer -> text (they are UUIDs) --- www/js/models/sql/project.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www/js/models/sql/project.js b/www/js/models/sql/project.js index 4abcc810..37760ec9 100755 --- a/www/js/models/sql/project.js +++ b/www/js/models/sql/project.js @@ -684,8 +684,8 @@ define(function (require) { name: "", // EDB 9 Jan 2025 (v1.18) - these have moved to the bookmarks table lastDocument: "", - lastAdaptedBookID: 0, - lastAdaptedChapterID: 0, + lastAdaptedBookID: "", + lastAdaptedChapterID: "", lastAdaptedSPID: "", lastAdaptedName: "", // end EDB @@ -999,7 +999,7 @@ define(function (require) { i = 0, len = 0; window.Application.db.transaction(function (tx) { - tx.executeSql('CREATE TABLE IF NOT EXISTS project (id integer primary key, projectid text, SourceFont text, SourceFontSize text, SourceColor text, TargetFont text, TargetFontSize text, TargetColor text, NavigationFont text, NavigationFontSize text, NavigationColor text, SpecialTextColor text, RetranslationColor text, TextDifferencesColor text, SourceLanguageName text, SourceLanguageCode text, TargetLanguageName text, TargetLanguageCode text, SourceVariant text, TargetVariant text, CopyPunctuation text, PunctPairs text, AutoCapitalization text, SourceHasUpperCase text, CasePairs text, SourceDir text, TargetDir text, NavDir text, name text, lastDocument text, lastAdaptedBookID integer, lastAdaptedChapterID integer, lastAdaptedSPID text, lastAdaptedName text, CustomFilters text, FilterMarkers text);'); + tx.executeSql('CREATE TABLE IF NOT EXISTS project (id integer primary key, projectid text, SourceFont text, SourceFontSize text, SourceColor text, TargetFont text, TargetFontSize text, TargetColor text, NavigationFont text, NavigationFontSize text, NavigationColor text, SpecialTextColor text, RetranslationColor text, TextDifferencesColor text, SourceLanguageName text, SourceLanguageCode text, TargetLanguageName text, TargetLanguageCode text, SourceVariant text, TargetVariant text, CopyPunctuation text, PunctPairs text, AutoCapitalization text, SourceHasUpperCase text, CasePairs text, SourceDir text, TargetDir text, NavDir text, name text, lastDocument text, lastAdaptedBookID text, lastAdaptedChapterID text, lastAdaptedSPID text, lastAdaptedName text, CustomFilters text, FilterMarkers text);'); tx.executeSql("SELECT * from project;", [], function (tx, res) { var tmpString = "";