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

Migration_16_17.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: 547cb6c7c659fafeb6081e79e7cdaaa696411d93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package it.niedermann.owncloud.notes.persistence.migration;

import android.database.sqlite.SQLiteDatabase;

import androidx.annotation.NonNull;

public class Migration_16_17 {
    /**
     * Adds a column to store the current scroll position per note
     * https://github.com/stefan-niedermann/nextcloud-notes/issues/227
     */
    public Migration_16_17(@NonNull SQLiteDatabase db) {
        db.execSQL("ALTER TABLE NOTES ADD COLUMN SCROLL_Y INTEGER DEFAULT 0");
    }
}