fix: seed file returning early
This commit is contained in:
@@ -6,5 +6,6 @@ import postgres from 'postgres';
|
|||||||
const client = postgres('postgresql://postgres:postgres@localhost:5432/db');
|
const client = postgres('postgresql://postgres:postgres@localhost:5432/db');
|
||||||
const db = drizzle(client, { schema });
|
const db = drizzle(client, { schema });
|
||||||
|
|
||||||
db.insert(topics).values([{ name: 'Math', emoji: '👍' }, { name: 'Programming', emoji: '👍' }])
|
await db.insert(topics).values([{ name: 'Math', emoji: '👍' }, { name: 'Programming', emoji: '👍' }])
|
||||||
|
|
||||||
|
process.exit(0)
|
||||||
|
|||||||
Reference in New Issue
Block a user