Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Migration_5_6.java « migration « persistence « notes « owncloud « niedermann « it « java « main « src « app - github.com/stefan-niedermann/nextcloud-notes.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 184a6033736967f72e728829a0137ca193626814 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package it.niedermann.owncloud.notes.persistence.migration;

import android.database.sqlite.SQLiteDatabase;

import androidx.annotation.NonNull;

public class Migration_5_6 {
    /**
     * Adds a column to support marking notes as favorite
     */
    public Migration_5_6(@NonNull SQLiteDatabase db) {
        db.execSQL("ALTER TABLE NOTES ADD COLUMN FAVORITE INTEGER DEFAULT 0");
    }
}