status-go/appdatabase/migrations/sql/1649164719_add_community_archives_info_table.up.sql
Pascal Precht 7032fc9dcc Introduce community history archive routine
This introduces logic needed to:

- Create WakuMessageArchives and and indices from store waku messages
- History archive torrent data to disk and create .torrent file from
  that
- Seed and unseed history archive torrents as necessary
- Starting/stopping the torrent client
- Enabling/disabling community history support for individual components
  and starting/stopping the routine intervals accordingly

This does not yet handle magnet links (#2568)

Closes #2567
2022-04-06 13:00:33 +02:00

7 lines
208 B
SQL

CREATE TABLE IF NOT EXISTS communities_archive_info (
community_id TEXT PRIMARY KEY ON CONFLICT REPLACE,
magnetlink_clock INT NOT NULL DEFAULT 0,
last_message_archive_end_date INT NOT NULL DEFAULT 0
)