Skip to content

Commit

Permalink
improvement(migrate): help output (#4375)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jolg42 committed Nov 26, 2020
1 parent 073d228 commit 5c02c0d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
14 changes: 9 additions & 5 deletions src/packages/migrate/src/commands/MigrateCommand.ts
Expand Up @@ -31,12 +31,16 @@ ${chalk.bold('Usage')}
${chalk.dim('$')} prisma migrate [command] [options] --early-access-feature
${chalk.bold('Commands')}
${chalk.bold('Commands for development')}
dev Easily create and apply migrations during development
deploy Deploy your migrations to your database
reset Reset your database, all data will be lost
resolve Resolve your database migration state
dev Create migrations from your Prisma schema, apply them to the database,
generate artifacts (Prisma Client)
reset Reset your database and apply all migrations
${chalk.bold('Commands for staging/production')}
deploy Apply migrations to update the database schema
resolve Resolve issues with database migrations (baseline, failed migration, hotfix)
${chalk.bold('Options')}
Expand Down
2 changes: 1 addition & 1 deletion src/packages/migrate/src/commands/MigrateDeploy.ts
Expand Up @@ -23,7 +23,7 @@ export class MigrateDeploy implements Command {
}

private static help = format(`
Deploy your migrations to your database.
Apply migrations to update the database schema in staging/production
${chalk.bold.yellow('WARNING')} ${chalk.bold(
"Prisma's migration functionality is currently in Early Access.",
Expand Down
2 changes: 1 addition & 1 deletion src/packages/migrate/src/commands/MigrateDev.ts
Expand Up @@ -39,7 +39,7 @@ export class MigrateDev implements Command {

private static help = format(`${
process.platform === 'win32' ? '' : chalk.bold('🏋️ ')
}Migrate your database with confidence
}Create migrations from your Prisma schema, apply them to the database, generate artifacts (Prisma Client)
${chalk.bold.yellow('WARNING')} ${chalk.bold(
"Prisma's migration functionality is currently in Early Access.",
Expand Down
2 changes: 1 addition & 1 deletion src/packages/migrate/src/commands/MigrateReset.ts
Expand Up @@ -25,7 +25,7 @@ export class MigrateReset implements Command {
}

private static help = format(`
Reset your database and reapply migrations
Reset your database and apply all migrations
${chalk.bold.yellow('WARNING')} ${chalk.bold(
"Prisma's migration functionality is currently in Early Access.",
Expand Down
2 changes: 1 addition & 1 deletion src/packages/migrate/src/commands/MigrateResolve.ts
Expand Up @@ -26,7 +26,7 @@ export class MigrateResolve implements Command {
}

private static help = format(`
Resolve your database migration state
Resolve issues with database migrations (baseline, failed migration, hotfix) in staging/production
${chalk.bold.yellow('WARNING')} ${chalk.bold(
"Prisma's migration functionality is currently in Early Access.",
Expand Down

0 comments on commit 5c02c0d

Please sign in to comment.