Commit 671459ff authored by Yadd's avatar Yadd

Tidy

parent 65a8733f
......@@ -135,7 +135,16 @@ my $tests = {
},
pg => [
'DROP TABLE IF EXISTS sessions',
'CREATE TABLE sessions (id varchar(64) not null primary key,a_session json,as_wt varchar(32) AS (a_session->"$._whatToTrace") VIRTUAL,as_sk varchar(12) AS (a_session->"$._session_kind") VIRTUAL,as_ut bigint AS (a_session->"$._utime") VIRTUAL,as_ip varchar(64) AS (a_session->"$.ipAddr") VIRTUAL,KEY as_wt (as_wt),KEY as_sk (as_sk),KEY as_ut (as_ut),KEY as_ip (as_ip)) ENGINE=InnoDB',
'CREATE TABLE sessions (id varchar(64) not null primary key, a_session json,'
. 'as_wt varchar(32) AS (a_session->"$._whatToTrace") VIRTUAL,'
. 'as_sk varchar(12) AS (a_session->"$._session_kind") VIRTUAL,'
. 'as_ut bigint AS (a_session->"$._utime") VIRTUAL,'
. 'as_ip varchar(64) AS (a_session->"$.ipAddr") VIRTUAL,'
. 'KEY as_wt (as_wt),'
. 'KEY as_sk (as_sk),'
. 'KEY as_ut (as_ut),'
. 'KEY as_ip (as_ip))'
. 'ENGINE=InnoDB',
],
},
Postgres => {
......@@ -185,7 +194,7 @@ my $tests = {
'DROP INDEX IF EXISTS _s1',
'DROP INDEX IF EXISTS _u1',
'CREATE UNLOGGED TABLE sessions (id varchar(64) not null primary key, a_session text, _whatToTrace text, _session_kind text, _utime bigint)',
'CREATE INDEX uid1 ON sessions USING BTREE (_whatToTrace text_pattern_ops)',
'CREATE INDEX uid1 ON sessions USING BTREE (_whatToTrace text_pattern_ops)',
'CREATE INDEX _s1 ON sessions (_session_kind)',
'CREATE INDEX _u1 ON sessions (_utime)',
],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment