create role in migration

DdjMax5/24/2023
Is it possible to create a role in a migration? And to do the grants and things as part of that?
IIgal5/24/2023
Hey 👋

There is no built-in support for such queries.
You can execute raw SQL queries using the sql template tag:

import { sql } from 'kysely'

await sql`MY QUERY`.execute(db)