From: Michael Tremer Date: Thu, 25 May 2023 09:25:57 +0000 (+0000) Subject: db: PostgreSQL like to shuffle tables around it seems X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c39dbdd84a65e9d6e80ffd9770713b45c87e1aa;p=pbs.git db: PostgreSQL like to shuffle tables around it seems Signed-off-by: Michael Tremer --- diff --git a/src/database.sql b/src/database.sql index 2f2b8120..7f814a0d 100644 --- a/src/database.sql +++ b/src/database.sql @@ -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: - --