diff --git a/clientapi/clientapi_test.go b/clientapi/clientapi_test.go index 54d674521..c550b2083 100644 --- a/clientapi/clientapi_test.go +++ b/clientapi/clientapi_test.go @@ -2359,9 +2359,6 @@ func TestReportEvent(t *testing.T) { eventToReport := room.CreateAndInsert(t, alice, "m.room.message", map[string]interface{}{"body": "hello world"}) test.WithAllDatabases(t, func(t *testing.T, dbType test.DBType) { - if dbType == test.DBTypeSQLite { - t.Skip() - } cfg, processCtx, close := testrig.CreateConfig(t, dbType) routers := httputil.NewRouters() cm := sqlutil.NewConnectionManager(processCtx, cfg.Global.DatabaseOptions) diff --git a/roomserver/storage/sqlite3/reported_events_table.go b/roomserver/storage/sqlite3/reported_events_table.go index fa6106278..b4d18a2a7 100644 --- a/roomserver/storage/sqlite3/reported_events_table.go +++ b/roomserver/storage/sqlite3/reported_events_table.go @@ -26,16 +26,15 @@ import ( ) const reportedEventsScheme = ` -CREATE SEQUENCE IF NOT EXISTS roomserver_reported_events_id_seq; CREATE TABLE IF NOT EXISTS roomserver_reported_events ( - id BIGINT PRIMARY KEY DEFAULT nextval('roomserver_reported_events_id_seq'), - room_nid BIGINT NOT NULL, - event_nid BIGINT NOT NULL, + id INTEGER PRIMARY KEY AUTOINCREMENT, + room_nid INTEGER NOT NULL, + event_nid INTEGER NOT NULL, user_id TEXT NOT NULL, reason TEXT, score INTEGER, - received_ts BIGINT NOT NULL + received_ts INTEGER NOT NULL );` const insertReportedEventSQL = `