version 1.1.2.1, 2011/11/23 00:47:50
|
version 1.1.2.4, 2011/11/24 13:57:11
|
Line 3 BEGIN TRANSACTION;
|
Line 3 BEGIN TRANSACTION;
|
CREATE TABLE Online ( |
CREATE TABLE Online ( |
Username varchar(64) not null, |
Username varchar(64) not null, |
RemoteHost varchar(64) not null, |
RemoteHost varchar(64) not null, |
RepotePort smallint not null, | RemotePort smallint unsigned not null, |
Stamp timestamp); |
Stamp timestamp); |
CREATE TABLE Topics ( |
CREATE TABLE Topics ( |
id integer not null primary key, |
id integer not null primary key, |
|
Retain char not null, |
Topic varchar(255) not null, |
Topic varchar(255) not null, |
Value text, |
Value text, |
PubUser varchar(64) not null, |
PubUser varchar(64) not null, |
Line 15 PubHost varchar(64) not null,
|
Line 16 PubHost varchar(64) not null,
|
Stamp timestamp); |
Stamp timestamp); |
CREATE INDEX RemoteHost on Online (RemoteHost); |
CREATE INDEX RemoteHost on Online (RemoteHost); |
CREATE INDEX Username on Online (Username); |
CREATE INDEX Username on Online (Username); |
|
CREATE UNIQUE INDEX User on Online (Username, RemoteHost); |
CREATE INDEX PubDate on Topics (PubDate); |
CREATE INDEX PubDate on Topics (PubDate); |
CREATE INDEX PubHost on Topics (PubHost); |
CREATE INDEX PubHost on Topics (PubHost); |
CREATE INDEX PubUser on Topics (PubUser); |
CREATE INDEX PubUser on Topics (PubUser); |