database seeds successfully
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user