status-go/protocol/push_notification_server/migrations/sql/1593601728_initial_schema.u...

12 lines
517 B
SQL

CREATE TABLE IF NOT EXISTS push_notification_server_registrations (
public_key BLOB NOT NULL,
installation_id VARCHAR NOT NULL,
version INT NOT NULL,
registration BLOB,
UNIQUE(public_key, installation_id) ON CONFLICT REPLACE
);
CREATE INDEX idx_push_notification_server_registrations_public_key ON push_notification_server_registrations(public_key);
CREATE INDEX idx_push_notification_server_registrations_public_key_installation_id ON push_notification_server_registrations(public_key, installation_id);