change last_fixed field in DateTakens to int
This commit is contained in:
parent
2daf7e045f
commit
aa0c21a209
2 changed files with 2 additions and 2 deletions
|
@ -64,7 +64,7 @@ abstract class GalleryDatabase : RoomDatabase() {
|
||||||
|
|
||||||
private val MIGRATION_6_7 = object : Migration(6, 7) {
|
private val MIGRATION_6_7 = object : Migration(6, 7) {
|
||||||
override fun migrate(database: SupportSQLiteDatabase) {
|
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)")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,4 +12,4 @@ data class DateTaken(
|
||||||
@PrimaryKey(autoGenerate = true) var id: Int?,
|
@PrimaryKey(autoGenerate = true) var id: Int?,
|
||||||
@ColumnInfo(name = "full_path") var fullPath: String,
|
@ColumnInfo(name = "full_path") var fullPath: String,
|
||||||
@ColumnInfo(name = "parent_path") var parentPath: String,
|
@ColumnInfo(name = "parent_path") var parentPath: String,
|
||||||
@ColumnInfo(name = "last_fixed") var lastFixed: Long)
|
@ColumnInfo(name = "last_fixed") var lastFixed: Int)
|
||||||
|
|
Loading…
Reference in a new issue