-
-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! feat(capabilities): Fetch and store direct editing capability …
…using existing capabilities code
- Loading branch information
1 parent
091911a
commit dcc6cae
Showing
2 changed files
with
13 additions
and
19 deletions.
There are no files selected for viewing
19 changes: 0 additions & 19 deletions
19
app/src/main/java/it/niedermann/owncloud/notes/persistence/migration/Migration_24_25.java
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
app/src/main/java/it/niedermann/owncloud/notes/persistence/migration/Migration_24_25.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package it.niedermann.owncloud.notes.persistence.migration | ||
|
||
import androidx.room.migration.Migration | ||
import androidx.sqlite.db.SupportSQLiteDatabase | ||
|
||
@Suppress("ClassName", "Detekt.ClassNaming", "Detekt.MagicNumber") | ||
object Migration_24_25 : Migration(24, 25) { | ||
override fun migrate(db: SupportSQLiteDatabase) { | ||
db.execSQL("ALTER TABLE Account ADD COLUMN directEditingAvailable INTEGER DEFAULT 0 NOT NULL") | ||
// remove capabilities etag to force refresh | ||
db.execSQL("UPDATE Account SET capabilitiesETag = NULL") | ||
} | ||
} |