MCPcopy
hub / github.com/prisma/prisma / writeMigrationLockfile

Function writeMigrationLockfile

packages/migrate/src/utils/createMigration.ts:47–53  ·  view source on GitHub ↗
({ baseDir, connectorType, lockfile }: WriteMigrationLockfileInput)

Source from the content-addressed store, hash-verified

45}
46
47export async function writeMigrationLockfile({ baseDir, connectorType, lockfile }: WriteMigrationLockfileInput) {
48 const lockfileContent = `# Please do not edit this file manually
49# It should be added in your version-control system (e.g., Git)
50provider = "${connectorType}"
51`
52 await fs.promises.writeFile(path.join(baseDir, lockfile.path), lockfileContent, { encoding: 'utf-8' })
53}

Callers 1

createMigrationMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected