parent
c5475b8881
commit
7d57e11314
7 changed files with 121 additions and 35 deletions
@ -1,27 +1,76 @@ |
|||||||
CREATE TABLE IF NOT EXISTS `lmConfig` ( |
CREATE TABLE IF NOT EXISTS lmConfig ( |
||||||
`cfgNum` INT(11) NOT NULL, |
cfgNum int not null primary key, |
||||||
`FIELD` VARCHAR(255) NOT NULL DEFAULT '', |
data longtext |
||||||
`VALUE` LONGTEXT, |
|
||||||
PRIMARY KEY (`cfgNum`,`FIELD`) |
|
||||||
); |
|
||||||
CREATE TABLE IF NOT EXISTS `sessions` ( |
|
||||||
`id` VARCHAR(64) NOT NULL PRIMARY KEY, |
|
||||||
`a_session` TEXT, |
|
||||||
`_whatToTrace` TEXT, |
|
||||||
`_session_kind` TEXT, |
|
||||||
`_utime` BIGINT, |
|
||||||
`ipAddr` TEXT |
|
||||||
); |
|
||||||
CREATE INDEX IF NOT EXISTS `uid1` ON `sessions` (`_whatToTrace`(128)) USING BTREE; |
|
||||||
CREATE INDEX IF NOT EXISTS `s1` ON `sessions` (`_session_kind`(32)); |
|
||||||
CREATE INDEX IF NOT EXISTS `u1` ON `sessions` (`_utime`); |
|
||||||
CREATE INDEX IF NOT EXISTS `ip1` ON `sessions` (`ipAddr`(39)) USING BTREE; |
|
||||||
CREATE TABLE IF NOT EXISTS `notifications` ( |
|
||||||
`date` datetime NOT NULL, |
|
||||||
`uid` VARCHAR(255) NOT NULL, |
|
||||||
`ref` VARCHAR(255) NOT NULL, |
|
||||||
`cond` VARCHAR(255) DEFAULT NULL, |
|
||||||
`xml` longblob NOT NULL, |
|
||||||
`done` datetime DEFAULT NULL, |
|
||||||
PRIMARY KEY (`date`, `uid`, `ref`) |
|
||||||
); |
); |
||||||
|
CREATE TABLE IF NOT EXISTS sessions ( |
||||||
|
id varchar(64) not null primary key, |
||||||
|
a_session text, |
||||||
|
_whatToTrace varchar(64), |
||||||
|
_session_kind varchar(15), |
||||||
|
ipAddr varchar(64), |
||||||
|
_utime bigint, |
||||||
|
_httpSessionType varchar(64), |
||||||
|
user varchar(64) |
||||||
|
) DEFAULT CHARSET utf8; |
||||||
|
CREATE INDEX IF NOT EXISTS i_s__whatToTrace ON sessions (_whatToTrace); |
||||||
|
CREATE INDEX IF NOT EXISTS i_s__session_kind ON sessions (_session_kind); |
||||||
|
CREATE INDEX IF NOT EXISTS i_s__utime ON sessions (_utime); |
||||||
|
CREATE INDEX IF NOT EXISTS i_s_ipAddr ON sessions (ipAddr); |
||||||
|
CREATE INDEX IF NOT EXISTS i_s__httpSessionType ON sessions (_httpSessionType); |
||||||
|
CREATE INDEX IF NOT EXISTS i_s_user ON sessions (user); |
||||||
|
|
||||||
|
CREATE TABLE IF NOT EXISTS psessions ( |
||||||
|
id varchar(64) not null primary key, |
||||||
|
a_session text, |
||||||
|
_session_kind varchar(15), |
||||||
|
_httpSessionType varchar(64), |
||||||
|
_whatToTrace varchar(64), |
||||||
|
ipAddr varchar(64), |
||||||
|
_session_uid varchar(64) |
||||||
|
) DEFAULT CHARSET utf8; |
||||||
|
CREATE INDEX IF NOT EXISTS i_p__session_kind ON psessions (_session_kind); |
||||||
|
CREATE INDEX IF NOT EXISTS i_p__httpSessionType ON psessions (_httpSessionType); |
||||||
|
CREATE INDEX IF NOT EXISTS i_p__session_uid ON psessions (_session_uid); |
||||||
|
CREATE INDEX IF NOT EXISTS i_p_ipAddr ON psessions (ipAddr); |
||||||
|
CREATE INDEX IF NOT EXISTS i_p__whatToTrace ON psessions (_whatToTrace); |
||||||
|
|
||||||
|
CREATE TABLE IF NOT EXISTS samlsessions ( |
||||||
|
id varchar(64) not null primary key, |
||||||
|
a_session text, |
||||||
|
_session_kind varchar(15), |
||||||
|
_utime bigint, |
||||||
|
ProxyID varchar(64), |
||||||
|
_nameID varchar(128), |
||||||
|
_assert_id varchar(64), |
||||||
|
_art_id varchar(64), |
||||||
|
_saml_id varchar(64) |
||||||
|
) DEFAULT CHARSET utf8; |
||||||
|
CREATE INDEX IF NOT EXISTS i_a__session_kind ON samlsessions (_session_kind); |
||||||
|
CREATE INDEX IF NOT EXISTS i_a__utime ON samlsessions (_utime); |
||||||
|
CREATE INDEX IF NOT EXISTS i_a_ProxyID ON samlsessions (ProxyID); |
||||||
|
CREATE INDEX IF NOT EXISTS i_a__nameID ON samlsessions (_nameID); |
||||||
|
CREATE INDEX IF NOT EXISTS i_a__assert_id ON samlsessions (_assert_id); |
||||||
|
CREATE INDEX IF NOT EXISTS i_a__art_id ON samlsessions (_art_id); |
||||||
|
CREATE INDEX IF NOT EXISTS i_a__saml_id ON samlsessions (_saml_id); |
||||||
|
|
||||||
|
CREATE TABLE IF NOT EXISTS oidcsessions ( |
||||||
|
id varchar(64) not null primary key, |
||||||
|
a_session text, |
||||||
|
_session_kind varchar(15), |
||||||
|
_utime bigint |
||||||
|
) DEFAULT CHARSET utf8; |
||||||
|
CREATE INDEX IF NOT EXISTS i_o__session_kind ON oidcsessions (_session_kind); |
||||||
|
CREATE INDEX IF NOT EXISTS i_o__utime ON oidcsessions (_utime); |
||||||
|
|
||||||
|
CREATE TABLE IF NOT EXISTS cassessions ( |
||||||
|
id varchar(64) not null primary key, |
||||||
|
a_session text, |
||||||
|
_session_kind varchar(15), |
||||||
|
_utime bigint, |
||||||
|
_cas_id varchar(128), |
||||||
|
pgtIou varchar(128) |
||||||
|
) DEFAULT CHARSET utf8; |
||||||
|
CREATE INDEX IF NOT EXISTS i_c__session_kind ON cassessions (_session_kind); |
||||||
|
CREATE INDEX IF NOT EXISTS i_c__utime ON cassessions (_utime); |
||||||
|
CREATE INDEX IF NOT EXISTS i_c__cas_id ON cassessions (_cas_id); |
||||||
|
CREATE INDEX IF NOT EXISTS i_c_pgtIou ON cassessions (pgtIou); |
||||||
|
@ -0,0 +1,20 @@ |
|||||||
|
--- |
||||||
|
|
||||||
|
# Session tables used with the database backend |
||||||
|
# to store the various type of sessions |
||||||
|
llng_session_tables: |
||||||
|
global: |
||||||
|
name: sessions |
||||||
|
index: ipAddr _whatToTrace user _session_kind _utime _httpSessionType |
||||||
|
persistent: |
||||||
|
name: psessions |
||||||
|
index: ipAddr _whatToTrace _session_kind _httpSessionType _session_uid |
||||||
|
saml: |
||||||
|
name: samlsessions |
||||||
|
index: _session_kind _utime _saml_id |
||||||
|
oidc: |
||||||
|
name: oidcsessions |
||||||
|
index: _session_kind _utime |
||||||
|
cas: |
||||||
|
name: cassessions |
||||||
|
index: _session_kind _utime _cas_id |
Loading…
Reference in new issue