change last_fixed field in DateTakens to int

This commit is contained in:
tibbi 2020-01-15 22:48:43 +01:00
parent 2daf7e045f
commit aa0c21a209
2 changed files with 2 additions and 2 deletions

View file

@ -64,7 +64,7 @@ abstract class GalleryDatabase : RoomDatabase() {
private val MIGRATION_6_7 = object : Migration(6, 7) {
override fun migrate(database: SupportSQLiteDatabase) {
database.execSQL("CREATE TABLE IF NOT EXISTS `date_takens` (`id` INTEGER PRIMARY KEY AUTOINCREMENT, `full_path` TEXT NOT NULL, `parent_path` TEXT NOT NULL, `last_fixed` LONG NOT NULL)")
database.execSQL("CREATE TABLE IF NOT EXISTS `date_takens` (`id` INTEGER PRIMARY KEY AUTOINCREMENT, `full_path` TEXT NOT NULL, `parent_path` TEXT NOT NULL, `last_fixed` INTEGER NOT NULL)")
}
}
}

View file

@ -12,4 +12,4 @@ data class DateTaken(
@PrimaryKey(autoGenerate = true) var id: Int?,
@ColumnInfo(name = "full_path") var fullPath: String,
@ColumnInfo(name = "parent_path") var parentPath: String,
@ColumnInfo(name = "last_fixed") var lastFixed: Long)
@ColumnInfo(name = "last_fixed") var lastFixed: Int)