Skip to content

Commit

Permalink
chore(migrate): mask url in migration README
Browse files Browse the repository at this point in the history
  • Loading branch information
Jolg42 committed Jun 22, 2020
1 parent ef7c852 commit 48b8fe6
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/packages/migrate/src/utils/printMigrationReadme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import getEmail from 'git-user-email'
import getUserName from 'git-user-name'
import { DatabaseStep } from '../types'
import { printDetailedDatabaseSteps } from './printDatabaseSteps'
import { maskSchema } from '@prisma/sdk'

export interface MigrationReadmeInput {
migrationId: string
Expand Down Expand Up @@ -45,13 +46,15 @@ ${printDetailedDatabaseSteps(databaseSteps)}
## Changes
\`\`\`diff
${makePatch({
migrationId,
lastMigrationId,
datamodelA,
datamodelB,
databaseSteps,
})}
${maskSchema(
makePatch({
migrationId,
lastMigrationId,
datamodelA,
datamodelB,
databaseSteps,
}),
)}
\`\`\`
${
Expand Down

0 comments on commit 48b8fe6

Please sign in to comment.