Skip to content

Commit

Permalink
fixup! feat(capabilities): Fetch and store direct editing capability …
Browse files Browse the repository at this point in the history
…using existing capabilities code
  • Loading branch information
AlvaroBrey committed Feb 16, 2023
1 parent 091911a commit dcc6cae
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 19 deletions.

This file was deleted.

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")
}
}

0 comments on commit dcc6cae

Please sign in to comment.