mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 06:12:55 +00:00
3f19972c8e
* enable custom community store nodes * fix * fix * fix * fix * cleanup * fix * migration * fix * cleanup * fix * cleanup * fix * fix * cleanup * message to update the community storenodes * rename * fix test * wait for availability only if global storenode * fix test * fix typo * sync community storenodes * remove unused * add tests * fix imports * fix todo * unused * pr comments * pr feedback * revert merge deleted * fix lint * fix db and perform ms request * typo * fix log * fix go imports * refactor handle message * cleanup public message * add tests * fix test * cleanup test * fix test * avoid making one file to big to keep codeclimate from complaining * fix lint * revert * Update protocol/storenodes/database.go Co-authored-by: richΛrd <info@richardramos.me> * Update protocol/messenger_mailserver_cycle.go Co-authored-by: richΛrd <info@richardramos.me> * PR comment * fix tx * proto files * pr comment --------- Co-authored-by: richΛrd <info@richardramos.me>
12 lines
515 B
SQL
12 lines
515 B
SQL
CREATE TABLE IF NOT EXISTS community_storenodes (
|
|
community_id BLOB NOT NULL,
|
|
storenode_id VARCHAR NOT NULL,
|
|
name VARCHAR NOT NULL,
|
|
address VARCHAR NOT NULL,
|
|
fleet VARCHAR NOT NULL,
|
|
version INT NOT NULL,
|
|
clock INT NOT NULL DEFAULT 0,
|
|
removed BOOLEAN NOT NULL DEFAULT FALSE,
|
|
deleted_at INT NOT NULL DEFAULT 0,
|
|
PRIMARY KEY (community_id, storenode_id) -- One to many relationship between communities and storenodes: one community might have multiple storenodes
|
|
) WITHOUT ROWID; |