Make SearchHistoryEntry.kt fields nullable to match java version (#7674)

This commit is contained in:
XiangRongLin 2022-01-21 17:01:11 +01:00 committed by GitHub
parent f681b0bb5a
commit cd265fc31f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -12,11 +12,11 @@ import java.time.OffsetDateTime
indices = [Index(value = [SearchHistoryEntry.SEARCH])] indices = [Index(value = [SearchHistoryEntry.SEARCH])]
) )
data class SearchHistoryEntry( data class SearchHistoryEntry(
@field:ColumnInfo(name = CREATION_DATE) var creationDate: OffsetDateTime, @field:ColumnInfo(name = CREATION_DATE) var creationDate: OffsetDateTime?,
@field:ColumnInfo( @field:ColumnInfo(
name = SERVICE_ID name = SERVICE_ID
) var serviceId: Int, ) var serviceId: Int,
@field:ColumnInfo(name = SEARCH) var search: String @field:ColumnInfo(name = SEARCH) var search: String?
) { ) {
@ColumnInfo(name = ID) @ColumnInfo(name = ID)
@PrimaryKey(autoGenerate = true) @PrimaryKey(autoGenerate = true)