Skip to content

Commit

Permalink
Fix indices to remove warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
sufyanAbbasi committed Feb 29, 2024
1 parent ef41487 commit 7c8da48
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import com.google.android.ground.persistence.local.room.fields.MultipleChoiceEnt
onDelete = ForeignKey.CASCADE
)
],
indices = [Index("task_id", "job_id")],
indices = [Index("task_id"), Index("job_id")],
primaryKeys = ["task_id", "job_id"],
)
data class MultipleChoiceEntity(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ import androidx.room.Index
onDelete = ForeignKey.CASCADE
)
],
indices = [Index("task_id", "job_id")],
primaryKeys = ["id", "job_id"],
indices = [Index("task_id"), Index("job_id")],
primaryKeys = ["task_id", "job_id"],
)
data class OptionEntity(
@ColumnInfo(name = "id") val id: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ import com.google.android.ground.persistence.local.room.fields.TaskEntityType
onDelete = ForeignKey.CASCADE
)
],
indices = [Index("id", "job_id")],
indices = [Index("id"), Index("job_id")],
primaryKeys = ["id", "job_id"],
)
data class TaskEntity(
@ColumnInfo(name = "id") val id: String,
@ColumnInfo(name = "job_id") val jobId: String,
@ColumnInfo(name = "index") val index: Int,
@ColumnInfo(name = "task_type") val taskType: TaskEntityType,
@ColumnInfo(name = "label") val label: String?,
@ColumnInfo(name = "is_required") val isRequired: Boolean,
@ColumnInfo(name = "job_id") val jobId: String,
// Deprecated.
@ColumnInfo(name = "is_add_loi_task") val isAddLoiTask: Boolean
)

0 comments on commit 7c8da48

Please sign in to comment.