From b27877c10919cffca13321f819ba04b3917c5990 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 10 Feb 2020 22:05:51 +0100 Subject: [PATCH] make sort_value be empty by default --- .../simplemobiletools/gallery/pro/databases/GalleryDatabase.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/databases/GalleryDatabase.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/databases/GalleryDatabase.kt index aef29c659..6e2be4788 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/databases/GalleryDatabase.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/databases/GalleryDatabase.kt @@ -71,7 +71,7 @@ abstract class GalleryDatabase : RoomDatabase() { private val MIGRATION_7_8 = object : Migration(7, 8) { override fun migrate(database: SupportSQLiteDatabase) { - database.execSQL("ALTER TABLE directories ADD COLUMN sort_value TEXT NOT NULL") + database.execSQL("ALTER TABLE directories ADD COLUMN sort_value TEXT default '' NOT NULL") } } }