mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 14:16:21 +00:00
e2cab1a8ae
- Extracted `community_events_factory.go` - Introduced `eventsProcessor` - Improved processing logic order - Improved events filtering - Introduced concept of `EventTypeID` to prevent redundant events handling - Added sanity check before events appliance when reading community from database - Removed reject&re-apply scheme (no more ping-pong issue) - Fixed and added more variants to eventual consistency test fixes: status-im/status-desktop#13387 fixes: status-im/status-desktop#13388
6 lines
201 B
SQL
6 lines
201 B
SQL
CREATE TABLE applied_community_events (
|
|
community_id TEXT NOT NULL,
|
|
event_type_id TEXT DEFAULT NULL,
|
|
clock INT NOT NULL,
|
|
PRIMARY KEY (community_id, event_type_id) ON CONFLICT REPLACE
|
|
); |