25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-26 16:26:24 +01:00
xmpp.chapril.org-ejabberd/sql/sqlite/mod_push.sql

12 lines
396 B
MySQL
Raw Normal View History

2018-07-19 09:24:19 +02:00
CREATE TABLE push_session (
username text NOT NULL,
server_host text NOT NULL,
timestamp bigint NOT NULL,
service text NOT NULL,
node text NOT NULL,
xml text NOT NULL
);
CREATE UNIQUE INDEX i_server_host_username_timestamp ON push_session (server_host, username, timestamp);
CREATE UNIQUE INDEX i_push_session_susn ON push_session (server_host, username, service, node);