UNPKG

@reliverse/rse

Version:

@reliverse/rse is your all-in-one companion for bootstrapping and improving any kind of projects (especially web apps built with frameworks like Next.js) — whether you're kicking off something new or upgrading an existing app. It is also a little AI-power

13 lines (12 loc) 386 B
import { getMigrations } from "better-auth/db"; export const generateMigrations = async ({ options, file }) => { const { compileMigrations } = await getMigrations(options); const migrations = await compileMigrations(); return { code: migrations, fileName: file || `./better-auth_migrations/${(/* @__PURE__ */ new Date()).toISOString().replace(/:/g, "-")}.sql` }; };