diff --git a/app/src/main/java/it/niedermann/owncloud/notes/persistence/migration/Migration_24_25.java b/app/src/main/java/it/niedermann/owncloud/notes/persistence/migration/Migration_24_25.java deleted file mode 100644 index c25d776b1..000000000 --- a/app/src/main/java/it/niedermann/owncloud/notes/persistence/migration/Migration_24_25.java +++ /dev/null @@ -1,19 +0,0 @@ -package it.niedermann.owncloud.notes.persistence.migration; - -import androidx.annotation.NonNull; -import androidx.room.migration.Migration; -import androidx.sqlite.db.SupportSQLiteDatabase; - -public class Migration_24_25 extends Migration { - - public Migration_24_25() { - super(24, 25); - } - - @Override - public void migrate(@NonNull SupportSQLiteDatabase db) { - 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"); - } -} diff --git a/app/src/main/java/it/niedermann/owncloud/notes/persistence/migration/Migration_24_25.kt b/app/src/main/java/it/niedermann/owncloud/notes/persistence/migration/Migration_24_25.kt new file mode 100644 index 000000000..e172d1786 --- /dev/null +++ b/app/src/main/java/it/niedermann/owncloud/notes/persistence/migration/Migration_24_25.kt @@ -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") +class 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") + } +}