Remove limitedTimeline from Rooms table.
This commit is contained in:
parent
d16f5d972a
commit
ec72849a90
|
@ -52,7 +52,7 @@ class Store {
|
||||||
_init() async{
|
_init() async{
|
||||||
var databasePath = await getDatabasesPath();
|
var databasePath = await getDatabasesPath();
|
||||||
String path = p.join(databasePath, "FluffyMatrix.db");
|
String path = p.join(databasePath, "FluffyMatrix.db");
|
||||||
_db = await openDatabase(path, version: 3,
|
_db = await openDatabase(path, version: 4,
|
||||||
onCreate: (Database db, int version) async {
|
onCreate: (Database db, int version) async {
|
||||||
await createTables(db);
|
await createTables(db);
|
||||||
},
|
},
|
||||||
|
@ -148,17 +148,16 @@ class Store {
|
||||||
// Insert the chat into the database if not exists
|
// Insert the chat into the database if not exists
|
||||||
txn.rawInsert(
|
txn.rawInsert(
|
||||||
"INSERT OR IGNORE INTO Rooms " +
|
"INSERT OR IGNORE INTO Rooms " +
|
||||||
"VALUES(?, ?, '', 0, 0, 0, '', '', '', 0, '', '', '', '', '', '', '', '', 0, 50, 50, 0, 50, 50, 0, 50, 100, 50, 50, 50, 100) ",
|
"VALUES(?, ?, '', 0, 0, '', '', '', 0, '', '', '', '', '', '', '', '', 0, 50, 50, 0, 50, 50, 0, 50, 100, 50, 50, 50, 100) ",
|
||||||
[roomUpdate.id, roomUpdate.membership]);
|
[roomUpdate.id, roomUpdate.membership]);
|
||||||
|
|
||||||
// Update the notification counts and the limited timeline boolean
|
// Update the notification counts and the limited timeline boolean
|
||||||
txn.rawUpdate(
|
txn.rawUpdate(
|
||||||
"UPDATE Rooms SET highlight_count=?, notification_count=?, membership=?, limitedTimeline=? WHERE id=? ",
|
"UPDATE Rooms SET highlight_count=?, notification_count=?, membership=? WHERE id=? ",
|
||||||
[
|
[
|
||||||
roomUpdate.highlight_count,
|
roomUpdate.highlight_count,
|
||||||
roomUpdate.notification_count,
|
roomUpdate.notification_count,
|
||||||
roomUpdate.membership,
|
roomUpdate.membership,
|
||||||
roomUpdate.limitedTimeline,
|
|
||||||
roomUpdate.id
|
roomUpdate.id
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
@ -498,7 +497,6 @@ class Store {
|
||||||
'topic TEXT, ' +
|
'topic TEXT, ' +
|
||||||
'highlight_count INTEGER, ' +
|
'highlight_count INTEGER, ' +
|
||||||
'notification_count INTEGER, ' +
|
'notification_count INTEGER, ' +
|
||||||
'limitedTimeline INTEGER, ' +
|
|
||||||
'prev_batch TEXT, ' +
|
'prev_batch TEXT, ' +
|
||||||
'avatar_url TEXT, ' +
|
'avatar_url TEXT, ' +
|
||||||
'draft TEXT, ' +
|
'draft TEXT, ' +
|
||||||
|
|
Loading…
Reference in a new issue