Changed SQL create clause format.
This is syntactically the same as before, and does not need a DB update.
This commit is contained in:
parent
b97e84a81e
commit
80353971d2
1 changed files with 8 additions and 8 deletions
|
@ -19,16 +19,16 @@ object Database {
|
||||||
private val DatabaseVersion = 1
|
private val DatabaseVersion = 1
|
||||||
|
|
||||||
private val CreateMessagesTable = "CREATE TABLE messages(" +
|
private val CreateMessagesTable = "CREATE TABLE messages(" +
|
||||||
"_id integer primary key autoincrement," +
|
"_id INT PRIMARY KEY," +
|
||||||
"origin text not null," +
|
"origin TEXT NOT NULL," +
|
||||||
"target text not null," +
|
"target TEXT NOT NULL," +
|
||||||
"text text not null," +
|
"text TEXT NOT NULL," +
|
||||||
"date integer not null);" // Unix timestamp of message.
|
"date INT NOT NULL);" // Unix timestamp of message.
|
||||||
|
|
||||||
private val CreateContactsTable = "CREATE TABLE contacts(" +
|
private val CreateContactsTable = "CREATE TABLE contacts(" +
|
||||||
"_id integer primary key autoincrement," +
|
"_id INT PRIMARY KEY," +
|
||||||
"address text not null," +
|
"address TEXT NOT NULL," +
|
||||||
"name text not null)"
|
"name TEXT NOT NULL)"
|
||||||
|
|
||||||
trait OnContactsUpdatedListener {
|
trait OnContactsUpdatedListener {
|
||||||
def onContactsUpdated()
|
def onContactsUpdated()
|
||||||
|
|
Reference in a new issue