We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b30bae1 commit 48fa416Copy full SHA for 48fa416
src/lib/postgres.ts
@@ -1,3 +1,9 @@
1
import postgres from 'postgres';
2
3
-export const sql = postgres((process.env.DATABASE_URL as string).split('?')[0], { onnotice: console.error, max: 1 });
+export const sql = postgres((process.env.DATABASE_URL as string).split('?')[0], {
4
+ onnotice: notice => {
5
+ if (notice.message.includes('already exists, skipping')) return;
6
+ console.log('SQL Notice: ', notice.message);
7
+ },
8
+ max: 1
9
+});
0 commit comments