Skip to content

basalt / prisma/src / prismaMigrator

Function: prismaMigrator() ​

> prismaMigrator(options?): MigrateFn

Defined in: prisma/src/migrate.ts:170

Default migrator: shells out to prisma migrate deploy with the tenant's URL as DATABASE_URL. Not exercised in unit tests (needs the Prisma CLI and a live database) — the orchestration around it is what's tested.

Parameters ​

options? ​

PrismaMigratorOptions = {}

Returns ​

MigrateFn

Released under the MIT License.