-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
07fd0c2
commit 2d62de8
Showing
5 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
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
20 changes: 20 additions & 0 deletions
20
app/src/main/java/it/niedermann/nextcloud/deck/database/migration/Migration_32_33.java
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,20 @@ | ||
package it.niedermann.nextcloud.deck.database.migration; | ||
|
||
import androidx.annotation.NonNull; | ||
import androidx.room.migration.Migration; | ||
import androidx.sqlite.db.SupportSQLiteDatabase; | ||
|
||
/** | ||
* Adds support for marking a card as done: https://github.com/stefan-niedermann/nextcloud-deck/issues/1556 | ||
*/ | ||
public class Migration_32_33 extends Migration { | ||
|
||
public Migration_32_33() { | ||
super(32, 33); | ||
} | ||
|
||
@Override | ||
public void migrate(@NonNull SupportSQLiteDatabase database) { | ||
database.execSQL("ALTER TABLE `Card` add column done INTEGER"); | ||
} | ||
} |
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
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
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