From: Michael Tremer Date: Fri, 19 May 2023 16:56:50 +0000 (+0000) Subject: db: Re-export dump X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e577eff61d833468b13f6bd7988eab77097e2cb;p=pbs.git db: Re-export dump There are no functional changes. Signed-off-by: Michael Tremer --- diff --git a/src/database.sql b/src/database.sql index 95c85914..95b52c94 100644 --- a/src/database.sql +++ b/src/database.sql @@ -154,6 +154,45 @@ CREATE TABLE public.jobs ( ); +-- +-- Name: mirror_checks; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.mirror_checks ( + mirror_id integer NOT NULL, + checked_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + success boolean DEFAULT false NOT NULL, + response_time double precision, + http_status integer, + last_sync_at timestamp without time zone, + error text +); + + +-- +-- Name: mirrors; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.mirrors ( + id integer NOT NULL, + hostname text NOT NULL, + path text NOT NULL, + owner text, + contact text, + created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + created_by integer NOT NULL, + deleted_at timestamp without time zone, + deleted_by integer, + last_check_success boolean, + last_check_at timestamp without time zone, + last_sync_at timestamp without time zone, + country_code text, + error text, + asn integer, + notes text DEFAULT ''::text NOT NULL +); + + -- -- Name: repository_builds; Type: TABLE; Schema: public; Owner: - -- @@ -543,45 +582,6 @@ CREATE SEQUENCE public.messages_id_seq ALTER SEQUENCE public.messages_id_seq OWNED BY public.messages.id; --- --- Name: mirror_checks; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.mirror_checks ( - mirror_id integer NOT NULL, - checked_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, - success boolean DEFAULT false NOT NULL, - response_time double precision, - http_status integer, - last_sync_at timestamp without time zone, - error text -); - - --- --- Name: mirrors; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.mirrors ( - id integer NOT NULL, - hostname text NOT NULL, - path text NOT NULL, - owner text, - contact text, - created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, - created_by integer NOT NULL, - deleted_at timestamp without time zone, - deleted_by integer, - last_check_success boolean, - last_check_at timestamp without time zone, - last_sync_at timestamp without time zone, - country_code text, - error text, - asn integer, - notes text DEFAULT ''::text NOT NULL -); - - -- -- Name: mirrors_id_seq; Type: SEQUENCE; Schema: public; Owner: - --