Something went wrong. Try again.
A simple to-do app focused on tasks that can be completed within a specific time span. taskline.tobinio.dev
Something went wrong. Try again.
12345678910111213141516import { getMigrations } from "better-auth/db/migration";
export default defineNitroPlugin(async () => { const { toBeCreated, toBeAdded, runMigrations } = await getMigrations( auth.options, );
if (toBeCreated.length !== 0 || toBeAdded.length !== 0) { console.info("Running Migrations"); console.info("Tables to create:", toBeCreated); console.info("Fields to add:", toBeAdded); }
await runMigrations();});