diff --git a/src/data/Notes.java b/src/data/Notes.java index c99c394..b4f2014 100644 --- a/src/data/Notes.java +++ b/src/data/Notes.java @@ -210,6 +210,14 @@ public class Notes { // 定义类,给模块的其他类提供变量定义 */ public static final String LOCKED = "locked"; // 锁定状态 **** + /* + * The password + *
+ * Type : TEXT + *
+ */ + public static final String PASSWORD = "password"; // 密码 ***** + /* * The picture *diff --git a/src/data/NotesDatabaseHelper.java b/src/data/NotesDatabaseHelper.java index a1969bf..9face1f 100644 --- a/src/data/NotesDatabaseHelper.java +++ b/src/data/NotesDatabaseHelper.java @@ -63,6 +63,7 @@ public class NotesDatabaseHelper extends SQLiteOpenHelper { // 该类为便签SQ NoteColumns.VERSION + " INTEGER NOT NULL DEFAULT 0" + NoteColumns.LOCKED + " INTEGER NOT NULL DEFAULT 0" + + NoteColumns.PASSWORD + " TEXT NOT NULL DEFAULT ''," + NoteColumns.PICTURE + " TEXT NOT NULL DEFAULT ''," + ")";