fix: enable pgcrypto extension for gen_random_bytes in monitor IDs
This commit is contained in:
@@ -9,6 +9,7 @@ const sql = postgres(process.env.DATABASE_URL ?? "postgres://pingql:pingql@local
|
||||
export default sql;
|
||||
|
||||
export async function migrate() {
|
||||
await sql`CREATE EXTENSION IF NOT EXISTS pgcrypto`;
|
||||
await sql`
|
||||
CREATE TABLE IF NOT EXISTS accounts (
|
||||
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
||||
|
||||
Reference in New Issue
Block a user