diff --git a/qa-core/src/integrations/external-schema/postgres.integration.spec.ts b/qa-core/src/integrations/external-schema/postgres.integration.spec.ts index 8028ca11bc..5bfac734c9 100644 --- a/qa-core/src/integrations/external-schema/postgres.integration.spec.ts +++ b/qa-core/src/integrations/external-schema/postgres.integration.spec.ts @@ -61,7 +61,7 @@ describe("getExternalSchema", () => { `) }) - it.only("can export a database with tables", async () => { + it("can export a database with tables", async () => { const integration = new postgres.integration(config) await integration.internalQuery( @@ -265,7 +265,8 @@ describe("getExternalSchema", () => { CREATE TABLE public.products ( id integer NOT NULL, name character varying(100) NOT NULL, - price numeric NOT NULL + price numeric NOT NULL, + owner integer ); @@ -358,6 +359,14 @@ describe("getExternalSchema", () => { ADD CONSTRAINT users_pkey PRIMARY KEY (id); + -- + -- Name: products fk_owner; Type: FK CONSTRAINT; Schema: public; Owner: postgres + -- + + ALTER TABLE ONLY public.products + ADD CONSTRAINT fk_owner FOREIGN KEY (owner) REFERENCES public.users(id); + + -- -- PostgreSQL database dump complete --