From f57c96a80e122a82936fca2a120e3ca7629cdc16 Mon Sep 17 00:00:00 2001 From: Mikayla Dobson <93477693+innocuous-symmetry@users.noreply.github.com> Date: Fri, 18 Nov 2022 09:41:57 -0600 Subject: [PATCH] database seeds successfully --- server/db/seed.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/db/seed.ts b/server/db/seed.ts index ccf13b8..04a89e5 100644 --- a/server/db/seed.ts +++ b/server/db/seed.ts @@ -62,7 +62,6 @@ dotenv.config(); CREATE TABLE IF NOT EXISTS recipin.cmp_users_collections ( users_collections_id INT GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY, collection_id int REFERENCES recipin.collection (id), - owner_id int REFERENCES recipin.collection (owner_id), user_member_id int REFERENCES recipin.app_users (id) ); `; @@ -72,7 +71,7 @@ dotenv.config(); ] const client = new Client({ connectionString: process.env.CONSTRING }); - await client.connect().then(() => console.log('connected to pg at ' + process.env.CONSTRING)); + await client.connect().then(() => console.log('connected to pg. seeding...')); try { for (let s of allStatements) {