Skip to content

Commit f161da5

Browse files
committed
Fix postgresql tests
1 parent 09d7719 commit f161da5

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

tests/fixtures/blog_pgsql.sql

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ DROP TABLE IF EXISTS products CASCADE;
3131
DROP TABLE IF EXISTS barcodes CASCADE;
3232
DROP TABLE IF EXISTS barcodes2 CASCADE;
3333
DROP TABLE IF EXISTS "kunsthåndværk" CASCADE;
34+
DROP TABLE IF EXISTS invisibles CASCADE;
3435

3536
--
3637
-- Name: categories; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
@@ -156,7 +157,16 @@ CREATE TABLE barcodes (
156157

157158
CREATE TABLE "kunsthåndværk" (
158159
id character varying(36) NOT NULL,
159-
"Umlauts ä_ö_ü-COUNT" integer NOT NULL
160+
"Umlauts ä_ö_ü-COUNT" integer NOT NULL,
161+
invisible character varying(36)
162+
);
163+
164+
--
165+
-- Name: invisibles; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
166+
--
167+
168+
CREATE TABLE "invisibles" (
169+
id character varying(36) NOT NULL
160170
);
161171

162172
--
@@ -244,8 +254,15 @@ INSERT INTO "barcodes" ("product_id", "hex", "bin") VALUES
244254
-- Data for Name: kunsthåndværk; Type: TABLE DATA; Schema: public; Owner: postgres
245255
--
246256

247-
INSERT INTO "kunsthåndværk" ("id", "Umlauts ä_ö_ü-COUNT") VALUES
248-
('e42c77c6-06a4-4502-816c-d112c7142e6d', 1);
257+
INSERT INTO "kunsthåndværk" ("id", "Umlauts ä_ö_ü-COUNT", "invisible") VALUES
258+
('e42c77c6-06a4-4502-816c-d112c7142e6d', 1, NULL);
259+
260+
--
261+
-- Data for Name: invisibles; Type: TABLE DATA; Schema: public; Owner: postgres
262+
--
263+
264+
INSERT INTO "invisibles" ("id") VALUES
265+
('e42c77c6-06a4-4502-816c-d112c7142e6d');
249266

250267
--
251268
-- Name: categories_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
@@ -340,6 +357,13 @@ ALTER TABLE ONLY barcodes
340357
ALTER TABLE ONLY "kunsthåndværk"
341358
ADD CONSTRAINT "kunsthåndværk_pkey" PRIMARY KEY (id);
342359

360+
--
361+
-- Name: invisibles_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
362+
--
363+
364+
ALTER TABLE ONLY "invisibles"
365+
ADD CONSTRAINT "invisibles_pkey" PRIMARY KEY (id);
366+
343367
--
344368
-- Name: comments_post_id_idx; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
345369
--

0 commit comments

Comments
 (0)