Update tests
This commit is contained in:
parent
921c821d2f
commit
c4a2e2814a
|
@ -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)
|
const integration = new postgres.integration(config)
|
||||||
|
|
||||||
await integration.internalQuery(
|
await integration.internalQuery(
|
||||||
|
@ -265,7 +265,8 @@ describe("getExternalSchema", () => {
|
||||||
CREATE TABLE public.products (
|
CREATE TABLE public.products (
|
||||||
id integer NOT NULL,
|
id integer NOT NULL,
|
||||||
name character varying(100) 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);
|
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
|
-- PostgreSQL database dump complete
|
||||||
--
|
--
|
||||||
|
|
Loading…
Reference in New Issue