version 1.2.2.1, 2012/02/01 14:53:13
|
version 1.2.2.2, 2012/05/08 13:40:07
|
Line 12 WillRetain tinyint,
|
Line 12 WillRetain tinyint,
|
Stamp timestamp); |
Stamp timestamp); |
CREATE TABLE IF NOT EXISTS Topics ( |
CREATE TABLE IF NOT EXISTS Topics ( |
id integer not null primary key, |
id integer not null primary key, |
|
ConnID varchar(23) not null, |
MsgID smallint unsigned not null, |
MsgID smallint unsigned not null, |
QoS char not null, |
QoS char not null, |
Retain char not null, |
Retain char not null, |
Line 23 PubHost varchar(64) not null,
|
Line 24 PubHost varchar(64) not null,
|
Stamp timestamp); |
Stamp timestamp); |
CREATE TABLE IF NOT EXISTS Subscribes ( |
CREATE TABLE IF NOT EXISTS Subscribes ( |
id integer not null primary key, |
id integer not null primary key, |
|
ConnID varchar(23) not null, |
MsgID smallint unsigned not null, |
MsgID smallint unsigned not null, |
QoS char not null, |
QoS char not null, |
Topic varchar(255) not null, |
Topic varchar(255) not null, |
Line 37 CREATE INDEX IF NOT EXISTS topics_PubHost on Topics (P
|
Line 39 CREATE INDEX IF NOT EXISTS topics_PubHost on Topics (P
|
CREATE INDEX IF NOT EXISTS topics_PubUser on Topics (PubUser); |
CREATE INDEX IF NOT EXISTS topics_PubUser on Topics (PubUser); |
CREATE INDEX IF NOT EXISTS topics_MsgID on Topics (MsgID); |
CREATE INDEX IF NOT EXISTS topics_MsgID on Topics (MsgID); |
CREATE INDEX IF NOT EXISTS topics_Topic on Topics (Topic); |
CREATE INDEX IF NOT EXISTS topics_Topic on Topics (Topic); |
|
CREATE INDEX IF NOT EXISTS topics_ConnID on Topics (ConnID); |
CREATE INDEX IF NOT EXISTS subscribes_PubDate on Subscribes (PubDate); |
CREATE INDEX IF NOT EXISTS subscribes_PubDate on Subscribes (PubDate); |
CREATE INDEX IF NOT EXISTS subscribes_PubHost on Subscribes (PubHost); |
CREATE INDEX IF NOT EXISTS subscribes_PubHost on Subscribes (PubHost); |
CREATE INDEX IF NOT EXISTS subscribes_PubUser on Subscribes (PubUser); |
CREATE INDEX IF NOT EXISTS subscribes_PubUser on Subscribes (PubUser); |
CREATE INDEX IF NOT EXISTS subscribes_MsgID on Subscribes (MsgID); |
CREATE INDEX IF NOT EXISTS subscribes_MsgID on Subscribes (MsgID); |
CREATE INDEX IF NOT EXISTS subscribes_Topic on Subscribes (Topic); |
CREATE INDEX IF NOT EXISTS subscribes_Topic on Subscribes (Topic); |
|
CREATE INDEX IF NOT EXISTS subscribes_ConnID on Subscribes (ConnID); |
CREATE TRIGGER IF NOT EXISTS Online_update_t AFTER UPDATE ON Online |
CREATE TRIGGER IF NOT EXISTS Online_update_t AFTER UPDATE ON Online |
BEGIN |
BEGIN |
UPDATE Online SET Stamp = strftime('%s', 'now') WHERE ConnID = old.ConnID; |
UPDATE Online SET Stamp = strftime('%s', 'now') WHERE ConnID = old.ConnID; |