]> git.ipfire.org Git - pbs.git/commitdiff
db: Re-export dump
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 19 May 2023 16:56:50 +0000 (16:56 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 19 May 2023 16:56:50 +0000 (16:56 +0000)
There are no functional changes.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/database.sql

index 95c85914641ef48c84324320be49541dae71d0de..95b52c9468f0da55160ed00d439c840cab7747ae 100644 (file)
@@ -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: -
 --