Skip to content

Commit ae49e38

Browse files
committed
Remove duplicate Indices on PrimaryKeys.
1 parent aebdeca commit ae49e38

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
### ⚠️ Changed
3434

3535
### ❌ Removed
36+
- Removed duplicate Index creation on PrimaryKey of `ReplyAttachmentEntity` and `AttachmentEntity`.[#5749](https://github.com/GetStream/stream-chat-android/pull/5749)
3637

3738
## stream-chat-android-state
3839
### 🐞 Fixed

stream-chat-android-offline/src/main/java/io/getstream/chat/android/offline/repository/domain/message/attachment/internal/AttachmentEntity.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package io.getstream.chat.android.offline.repository.domain.message.attachment.internal
1818

19-
import androidx.room.ColumnInfo
2019
import androidx.room.Embedded
2120
import androidx.room.Entity
2221
import androidx.room.ForeignKey
@@ -39,7 +38,6 @@ import io.getstream.chat.android.offline.repository.domain.message.internal.Mess
3938
indices = [Index("messageId")],
4039
)
4140
internal data class AttachmentEntity(
42-
@ColumnInfo(index = true)
4341
@PrimaryKey
4442
val id: String,
4543
val messageId: String,

stream-chat-android-offline/src/main/java/io/getstream/chat/android/offline/repository/domain/message/attachment/internal/ReplyAttachmentEntity.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package io.getstream.chat.android.offline.repository.domain.message.attachment.internal
1818

19-
import androidx.room.ColumnInfo
2019
import androidx.room.Embedded
2120
import androidx.room.Entity
2221
import androidx.room.ForeignKey
@@ -39,7 +38,6 @@ import io.getstream.chat.android.offline.repository.domain.message.internal.Repl
3938
indices = [Index("messageId")],
4039
)
4140
internal data class ReplyAttachmentEntity(
42-
@ColumnInfo(index = true)
4341
@PrimaryKey
4442
val id: String,
4543
val messageId: String,

0 commit comments

Comments
 (0)