Skip to content

Commit

Permalink
Fix mockup-data.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
Francis Duvivier committed Nov 27, 2024
1 parent da8d725 commit a94a1e4
Showing 1 changed file with 38 additions and 11 deletions.
49 changes: 38 additions & 11 deletions mockup-data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,36 @@ 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
);


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
--
Expand Down Expand Up @@ -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
--
Expand Down Expand Up @@ -417,7 +446,6 @@ COPY badgehub.badges (slug, name, created_at, updated_at, deleted_at) FROM stdin
mch2022 mch2022 2022-06-12 16:41:34+00 2022-06-12 16:41:48+00 \N
troopers23 troopers23 2023-06-19 17:48:13+00 2023-06-19 17:48:13+00 \N
why2025 WHY2025 2024-05-22 11:17:11.441719+00 2024-05-22 11:17:11.441719+00 \N
admin Admin \N \N \N
\.


Expand Down Expand Up @@ -449,7 +477,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
\.


Expand Down Expand Up @@ -850,6 +878,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
--
Expand Down Expand Up @@ -903,14 +938,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
--
Expand Down

0 comments on commit a94a1e4

Please sign in to comment.