mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-02-07 09:33:19 +01:00
make sure the note id autoincrements
This commit is contained in:
parent
08fc684720
commit
2461b843d4
@ -30,7 +30,7 @@ class DBHelper private constructor(private val mContext: Context) : SQLiteOpenHe
|
||||
}
|
||||
|
||||
override fun onCreate(db: SQLiteDatabase) {
|
||||
db.execSQL("CREATE TABLE $TABLE_NAME ($COL_ID INTEGER PRIMARY KEY, $COL_TITLE TEXT UNIQUE, $COL_VALUE TEXT, $COL_TYPE INTEGER DEFAULT 0, $COL_PATH TEXT)")
|
||||
db.execSQL("CREATE TABLE $TABLE_NAME ($COL_ID INTEGER PRIMARY KEY AUTOINCREMENT, $COL_TITLE TEXT UNIQUE, $COL_VALUE TEXT, $COL_TYPE INTEGER DEFAULT 0, $COL_PATH TEXT)")
|
||||
insertFirstNote(db)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user