1
0
Fork 0
mirror of synced 2024-07-03 21:40:55 +12:00

Update tests

This commit is contained in:
Adria Navarro 2023-06-21 11:47:53 +01:00
parent 921c821d2f
commit c4a2e2814a

View file

@ -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
--