Use INTEGER
instead of INT
for primary keys in database.
This commit is contained in:
parent
fba4a1fed0
commit
fb3592c2ae
1 changed files with 2 additions and 2 deletions
|
@ -19,14 +19,14 @@ object Database {
|
|||
private val DatabaseVersion = 1
|
||||
|
||||
private val CreateMessagesTable = "CREATE TABLE messages(" +
|
||||
"_id INT PRIMARY KEY," +
|
||||
"_id INTEGER PRIMARY KEY," +
|
||||
"origin TEXT NOT NULL," +
|
||||
"target TEXT NOT NULL," +
|
||||
"text TEXT NOT NULL," +
|
||||
"date INT NOT NULL);" // Unix timestamp of message.
|
||||
|
||||
private val CreateContactsTable = "CREATE TABLE contacts(" +
|
||||
"_id INT PRIMARY KEY," +
|
||||
"_id INTEGER PRIMARY KEY," +
|
||||
"address TEXT NOT NULL," +
|
||||
"name TEXT NOT NULL)"
|
||||
|
||||
|
|
Reference in a new issue