diff --git a/backends/rapidpro/schema.sql b/backends/rapidpro/schema.sql index ca74dfdcb..ee3c3b978 100644 --- a/backends/rapidpro/schema.sql +++ b/backends/rapidpro/schema.sql @@ -73,7 +73,6 @@ CREATE TABLE IF NOT EXISTS contacts_contactfire ( fire_on timestamp with time zone NOT NULL, session_uuid uuid, sprint_uuid uuid, - extra jsonb, UNIQUE (contact_id, fire_type, scope) ); diff --git a/backends/rapidpro/timeouts.go b/backends/rapidpro/timeouts.go index 34ee220be..447ea2042 100644 --- a/backends/rapidpro/timeouts.go +++ b/backends/rapidpro/timeouts.go @@ -12,8 +12,8 @@ import ( type SessionID int64 const sqlInsertTimeoutFire = ` -INSERT INTO contacts_contactfire(org_id, contact_id, fire_type, scope, fire_on, session_uuid, sprint_uuid, extra) - VALUES($1, $2, 'T', '', $3, $4, $5, '{}') +INSERT INTO contacts_contactfire(org_id, contact_id, fire_type, scope, fire_on, session_uuid, sprint_uuid) + VALUES($1, $2, 'T', '', $3, $4, $5) ON CONFLICT DO NOTHING` // insertTimeoutFire inserts a timeout fire for the session associated with the given msg