mirror of
https://github.com/status-im/status-go.git
synced 2025-02-10 05:45:30 +00:00
This commits adds support for postgres database. Currently two fields are stored: the bloom filter and the topic. Only the bloom filter is actually used to query, but potentially we will use also the topic in the future, so easier to separate it now in order to avoid a migration.
8 lines
216 B
SQL
8 lines
216 B
SQL
CREATE TABLE installations (
|
|
identity BLOB NOT NULL,
|
|
installation_id TEXT NOT NULL,
|
|
timestamp UNSIGNED BIG INT NOT NULL,
|
|
enabled BOOLEAN DEFAULT 1,
|
|
UNIQUE(identity, installation_id) ON CONFLICT REPLACE
|
|
);
|