diff --git a/common/translation/src/main/sqldelight/com/quran/mobile/translation/databases/2.db b/common/translation/src/main/sqldelight/com/quran/mobile/translation/databases/2.db index 425d149068..0b46c7c320 100644 Binary files a/common/translation/src/main/sqldelight/com/quran/mobile/translation/databases/2.db and b/common/translation/src/main/sqldelight/com/quran/mobile/translation/databases/2.db differ diff --git a/common/translation/src/main/sqldelight/com/quran/mobile/translation/databases/3.db b/common/translation/src/main/sqldelight/com/quran/mobile/translation/databases/3.db index 76b6421a84..fedc3da408 100644 Binary files a/common/translation/src/main/sqldelight/com/quran/mobile/translation/databases/3.db and b/common/translation/src/main/sqldelight/com/quran/mobile/translation/databases/3.db differ diff --git a/common/translation/src/main/sqldelight/com/quran/mobile/translation/migrations/1.sqm b/common/translation/src/main/sqldelight/com/quran/mobile/translation/migrations/1.sqm index 29d9684960..53c103dfcb 100644 --- a/common/translation/src/main/sqldelight/com/quran/mobile/translation/migrations/1.sqm +++ b/common/translation/src/main/sqldelight/com/quran/mobile/translation/migrations/1.sqm @@ -7,12 +7,12 @@ CREATE TABLE IF NOT EXISTS translations ( version INTEGER NOT NULL DEFAULT 0 ); --- adds translatorForeign +-- adds translator_foreign, updated in v2.7.3 CREATE TABLE translations_migration ( id INTEGER PRIMARY KEY, name TEXT NOT NULL, translator TEXT, - translatorForeign TEXT, + translator_foreign TEXT, filename TEXT NOT NULL, url TEXT NOT NULL, version INTEGER NOT NULL DEFAULT 0 diff --git a/common/translation/src/main/sqldelight/com/quran/mobile/translation/migrations/2.sqm b/common/translation/src/main/sqldelight/com/quran/mobile/translation/migrations/2.sqm index 69e50d0f6d..1a76a70d1c 100644 --- a/common/translation/src/main/sqldelight/com/quran/mobile/translation/migrations/2.sqm +++ b/common/translation/src/main/sqldelight/com/quran/mobile/translation/migrations/2.sqm @@ -1,9 +1,9 @@ --- adds languageCode +-- adds languageCode - updated in v2.7.5 CREATE TABLE translations_migration ( id INTEGER PRIMARY KEY, name TEXT NOT NULL, translator TEXT, - translatorForeign TEXT, + translator_foreign TEXT, filename TEXT NOT NULL, url TEXT NOT NULL, languageCode TEXT, @@ -11,7 +11,7 @@ CREATE TABLE translations_migration ( ); INSERT INTO translations_migration -SELECT id, name, translator, translatorForeign, filename, url, "", version +SELECT id, name, translator, translator_foreign, filename, url, "", version FROM translations; DROP TABLE translations; diff --git a/common/translation/src/main/sqldelight/com/quran/mobile/translation/migrations/3.sqm b/common/translation/src/main/sqldelight/com/quran/mobile/translation/migrations/3.sqm index 311c357b41..5747c44175 100644 --- a/common/translation/src/main/sqldelight/com/quran/mobile/translation/migrations/3.sqm +++ b/common/translation/src/main/sqldelight/com/quran/mobile/translation/migrations/3.sqm @@ -1,4 +1,5 @@ --- adds minimumRequiredVersion +-- adds minimumRequiredVersion - migration happened in v2.9.2 +-- renames translator_foreign to translatorForeign also. CREATE TABLE translations_migration ( id INTEGER PRIMARY KEY, name TEXT NOT NULL, @@ -12,7 +13,7 @@ CREATE TABLE translations_migration ( ); INSERT INTO translations_migration -SELECT id, name, translator, translatorForeign, filename, url, languageCode, version, 2 +SELECT id, name, translator, translator_foreign, filename, url, languageCode, version, 2 FROM translations; DROP TABLE translations;