Skip to content

Commit

Permalink
Fix migration
Browse files Browse the repository at this point in the history
  • Loading branch information
tuomas2 committed Nov 17, 2022
1 parent 57ad788 commit 8e672a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/src/main/java/net/bible/service/db/DatabaseContainer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,8 @@ private val MIGRATION_58_59_workspace_colors = object : Migration(58, 59) {
colDefs.forEach {
execSQL("ALTER TABLE `Workspace` ADD COLUMN $it")
execSQL("ALTER TABLE `PageManager` ADD COLUMN $it")
execSQL("UPDATE `Workspace` SET text_display_settings_colors_dayWorkspaceColor = -12303292")
execSQL("UPDATE `Workspace` SET text_display_settings_colors_nightWorkspaceColor = -16777216")
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ class WorkspaceEntities {
nightTextColor = white,
nightNoise = 0,
dayNoise = 0,
dayWorkspaceColor = Color.parseColor("#ff444444"),
nightWorkspaceColor = Color.parseColor("#ff000000")
dayWorkspaceColor = Color.parseColor("#ff444444"), // -12303292
nightWorkspaceColor = Color.parseColor("#ff000000"), // -16777216
),
marginSize = MarginSize(
marginLeft = 3,
Expand Down

0 comments on commit 8e672a9

Please sign in to comment.