Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AloqaIM-Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
AloqaIM-Android
Commits
bfddb506
Commit
bfddb506
authored
May 30, 2018
by
Lucio Maciel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update database
parent
bfe320af
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
RCDatabase.kt
app/src/main/java/chat/rocket/android/db/RCDatabase.kt
+1
-1
UserEntity.kt
app/src/main/java/chat/rocket/android/db/model/UserEntity.kt
+1
-1
No files found.
app/src/main/java/chat/rocket/android/db/RCDatabase.kt
View file @
bfddb506
...
@@ -7,7 +7,7 @@ import chat.rocket.android.db.model.UserEntity
...
@@ -7,7 +7,7 @@ import chat.rocket.android.db.model.UserEntity
@Database
(
@Database
(
entities
=
[
UserEntity
::
class
,
ChatRoomEntity
::
class
],
entities
=
[
UserEntity
::
class
,
ChatRoomEntity
::
class
],
version
=
2
,
version
=
3
,
exportSchema
=
true
exportSchema
=
true
)
)
abstract
class
RCDatabase
:
RoomDatabase
()
{
abstract
class
RCDatabase
:
RoomDatabase
()
{
...
...
app/src/main/java/chat/rocket/android/db/model/UserEntity.kt
View file @
bfddb506
...
@@ -5,7 +5,7 @@ import androidx.room.Index
...
@@ -5,7 +5,7 @@ import androidx.room.Index
import
androidx.room.PrimaryKey
import
androidx.room.PrimaryKey
@Entity
(
tableName
=
"users"
,
@Entity
(
tableName
=
"users"
,
indices
=
[
(
Index
(
value
=
[
"username"
],
unique
=
true
)
)])
indices
=
[
Index
(
value
=
[
"username"
]
)])
data class
UserEntity
(
data class
UserEntity
(
@PrimaryKey
override
val
id
:
String
,
@PrimaryKey
override
val
id
:
String
,
var
username
:
String
?
=
null
,
var
username
:
String
?
=
null
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment