Use INTEGER instead of INT for primary keys in database.

This commit is contained in:
Felix Ableitner 2015-03-17 22:50:45 +01:00
parent fba4a1fed0
commit fb3592c2ae

View file

@ -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)"