]> git.ipfire.org Git - pbs.git/commitdiff
db: PostgreSQL like to shuffle tables around it seems
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 25 May 2023 09:25:57 +0000 (09:25 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 25 May 2023 09:25:57 +0000 (09:25 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/database.sql

index 2f2b81209380cd079f5e9c586fd8873ebc7acdf9..7f814a0d880f78dc7cb74a6dc9a27f93b8dcf414 100644 (file)
@@ -193,6 +193,25 @@ CREATE TABLE public.mirrors (
 );
 
 
+--
+-- Name: release_monitorings; Type: TABLE; Schema: public; Owner: -
+--
+
+CREATE TABLE public.release_monitorings (
+    id integer NOT NULL,
+    distro_id integer NOT NULL,
+    name text NOT NULL,
+    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,
+    project_id integer NOT NULL,
+    follow text NOT NULL,
+    last_check_at timestamp without time zone,
+    create_builds boolean DEFAULT true NOT NULL
+);
+
+
 --
 -- Name: repository_builds; Type: TABLE; Schema: public; Owner: -
 --
@@ -769,25 +788,6 @@ CREATE SEQUENCE public.release_monitoring_releases_id_seq
 ALTER SEQUENCE public.release_monitoring_releases_id_seq OWNED BY public.release_monitoring_releases.id;
 
 
---
--- Name: release_monitorings; Type: TABLE; Schema: public; Owner: -
---
-
-CREATE TABLE public.release_monitorings (
-    id integer NOT NULL,
-    distro_id integer NOT NULL,
-    name text NOT NULL,
-    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,
-    project_id integer NOT NULL,
-    follow text NOT NULL,
-    last_check_at timestamp without time zone,
-    create_builds boolean DEFAULT true NOT NULL
-);
-
-
 --
 -- Name: release_monitorings_id_seq; Type: SEQUENCE; Schema: public; Owner: -
 --