[Store] Fix scheme

This commit is contained in:
Christian Pauly 2019-08-08 13:57:50 +02:00
parent cc84551f4d
commit 357a633d0e

View file

@ -466,7 +466,7 @@ class Store {
'joined_member_count INTEGER, ' + 'joined_member_count INTEGER, ' +
'invited_member_count INTEGER, ' + 'invited_member_count INTEGER, ' +
'heroes TEXT, ' + 'heroes TEXT, ' +
'UNIQUE(id))', 'UNIQUE(room_id))',
/// The database scheme for the TimelineEvent class. /// The database scheme for the TimelineEvent class.
'Events': 'CREATE TABLE IF NOT EXISTS Events(' + 'Events': 'CREATE TABLE IF NOT EXISTS Events(' +
@ -480,7 +480,7 @@ class Store {
'prev_content TEXT, ' + 'prev_content TEXT, ' +
'state_key TEXT, ' + 'state_key TEXT, ' +
"status INTEGER, " + "status INTEGER, " +
'UNIQUE(id))', 'UNIQUE(event_id))',
/// The database scheme for room states. /// The database scheme for room states.
'State': 'CREATE TABLE IF NOT EXISTS State(' + 'State': 'CREATE TABLE IF NOT EXISTS State(' +