From 8a22a61af12d39ff93dab09249ca2a89ac9978f1 Mon Sep 17 00:00:00 2001 From: Laurent Giovannoni <laurent.giovannoni@maarch.org> Date: Fri, 6 Apr 2012 08:51:11 +0000 Subject: [PATCH] evo: add record patrol structure --- core/trunk/structure.sql | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/core/trunk/structure.sql b/core/trunk/structure.sql index f395706b740..0ff8149b92d 100644 --- a/core/trunk/structure.sql +++ b/core/trunk/structure.sql @@ -1527,6 +1527,32 @@ CREATE TABLE doctypes_second_level ) WITH (OIDS=FALSE); +-- Table: rp_history + +CREATE SEQUENCE rp_history_id_seq + INCREMENT 1 + MINVALUE 1 + MAXVALUE 9223372036854775807 + START 1 + CACHE 1; + +CREATE TABLE rp_history +( + system_id bigint NOT NULL DEFAULT nextval('rp_history_id_seq'::regclass), + table_name character varying(32) NOT NULL, + rp_cycle bigint NOT NULL, + start_res_id bigint NOT NULL, + stop_res_id bigint NOT NULL, + start_date timestamp without time zone NOT NULL, + stop_date timestamp without time zone NOT NULL, + res_count bigint NOT NULL, + fail_count bigint NOT NULL, + CONSTRAINT rp_history_pkey PRIMARY KEY (system_id) +) +WITH ( + OIDS=FALSE +); + CREATE SEQUENCE res_id_seq INCREMENT 1 MINVALUE 1 -- GitLab