summaryrefslogtreecommitdiff
path: root/maintenance/postgres/archives/patch-log_search.sql
blob: 4c0b3c61f654f234c383bceca353ce633cc24d50 (plain)
1
2
3
4
5
6
7
8
9

CREATE TABLE log_search (
  ls_field TEXT NOT NULL,
  ls_value TEXT NOT NULL,
  ls_log_id INTEGER NOT NULL DEFAULT 0
);

ALTER TABLE log_search ADD CONSTRAINT log_search_pkey PRIMARY KEY(ls_field, ls_value, ls_log_id);
CREATE INDEX ls_log_id ON log_search (ls_log_id);