From beae63cc9cbd30dfb600e79f85cce3bb47b5ede6 Mon Sep 17 00:00:00 2001 From: Francis Duvivier Date: Thu, 28 Nov 2024 00:44:20 +0100 Subject: [PATCH] Fix mockup-data.sql --- mockup-data.sql | 48 ++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 38 insertions(+), 10 deletions(-) diff --git a/mockup-data.sql b/mockup-data.sql index 1d44206..414426f 100644 --- a/mockup-data.sql +++ b/mockup-data.sql @@ -114,7 +114,7 @@ ALTER TABLE badgehub.categories OWNER TO badgehub; -- CREATE TABLE badgehub.migrations ( - id integer DEFAULT nextval('badgehub_old.migrations_id_seq'::regclass) NOT NULL, + id integer NOT NULL, name character varying(255) NOT NULL, run_on timestamp without time zone NOT NULL ); @@ -122,6 +122,28 @@ CREATE TABLE badgehub.migrations ( ALTER TABLE badgehub.migrations OWNER TO badgehub; +-- +-- Name: migrations_id_seq; Type: SEQUENCE; Schema: badgehub; Owner: badgehub +-- + +CREATE SEQUENCE badgehub.migrations_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER SEQUENCE badgehub.migrations_id_seq OWNER TO badgehub; + +-- +-- Name: migrations_id_seq; Type: SEQUENCE OWNED BY; Schema: badgehub; Owner: badgehub +-- + +ALTER SEQUENCE badgehub.migrations_id_seq OWNED BY badgehub.migrations.id; + + -- -- Name: project_statuses_on_badges; Type: TABLE; Schema: badgehub; Owner: badgehub -- @@ -293,6 +315,13 @@ ALTER SEQUENCE badgehub.versions_id_seq OWNED BY badgehub.versions.id; ALTER TABLE ONLY badgehub.app_metadata_jsons ALTER COLUMN id SET DEFAULT nextval('badgehub.app_metadata_jsons_id_seq'::regclass); +-- +-- Name: migrations id; Type: DEFAULT; Schema: badgehub; Owner: badgehub +-- + +ALTER TABLE ONLY badgehub.migrations ALTER COLUMN id SET DEFAULT nextval('badgehub.migrations_id_seq'::regclass); + + -- -- Name: project_statuses_on_badges id; Type: DEFAULT; Schema: badgehub; Owner: badgehub -- @@ -449,7 +478,7 @@ sao SAO \N \N \N -- COPY badgehub.migrations (id, name, run_on) FROM stdin; -38 /20241116085102-initialize 2024-11-25 23:55:13.518 +1 /20241116085102-initialize 2024-11-27 23:56:35.535 \. @@ -850,6 +879,13 @@ COPY badgehub.versions (id, project_slug, app_metadata_json_id, revision, semant SELECT pg_catalog.setval('badgehub.app_metadata_jsons_id_seq', 87, true); +-- +-- Name: migrations_id_seq; Type: SEQUENCE SET; Schema: badgehub; Owner: badgehub +-- + +SELECT pg_catalog.setval('badgehub.migrations_id_seq', 1, true); + + -- -- Name: project_statuses_on_badges_id_seq; Type: SEQUENCE SET; Schema: badgehub; Owner: badgehub -- @@ -903,14 +939,6 @@ ALTER TABLE ONLY badgehub.categories ADD CONSTRAINT categories_pkey PRIMARY KEY (slug); --- --- Name: migrations migrations_pkey; Type: CONSTRAINT; Schema: badgehub; Owner: badgehub --- - -ALTER TABLE ONLY badgehub.migrations - ADD CONSTRAINT migrations_pkey PRIMARY KEY (id); - - -- -- Name: project_statuses_on_badges project_statuses_on_badges_pkey; Type: CONSTRAINT; Schema: badgehub; Owner: badgehub --