Update 010-overview.mdx (#748)

Prisma tool changed

```bash
$ yarn prisma -v
@prisma/cli          : 2.13.1

$ yarn prisma migrate --help
Update the database schema with migrations

WARNING Prisma's migration functionality is currently in Preview (https://pris.ly/d/preview).
When using any of the commands below you need to explicitly opt-in via the --preview-feature flag.
  
Usage

  $ prisma migrate [command] [options] --preview-feature

Commands for development

         dev   Create a migration from changes in Prisma schema, apply it to the database
               trigger generators (e.g. Prisma Client)
       reset   Reset your database and apply all migrations, all data will be lost

Commands for production/staging

      deploy   Apply pending migrations to the database 
      status   Check the status of your database migrations
     resolve   Resolve issues with database migrations, i.e. baseline, failed migration, hotfix

Options

  -h, --help   Display this help message
    --schema   Custom path to your Prisma schema

Examples

  Create a migration from changes in Prisma schema, apply it to the database, trigger generators (e.g. Prisma Client)
  $ prisma migrate dev --preview-feature

  Reset your database and apply all migrations
  $ prisma migrate reset --preview-feature

  Apply pending migrations to the database in production/staging
  $ prisma migrate deploy --preview-feature

  Check the status of migrations in the production/staging database
  $ prisma migrate status --preview-feature

  Specify a schema
  $ prisma migrate status --schema=./schema.prisma --preview-feature
```
This commit is contained in:
Edward Jiang 2020-12-20 08:36:57 -07:00 committed by GitHub
parent bef7786a7d
commit 08556d456f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 8 deletions

View File

@ -149,16 +149,10 @@ There are two ways you can start with the Prisma plugin. Either from scratch, or
}
```
3. Create a migration file:
3. Create a migration from changes in Prisma schema, and apply it to the database
```bash-symbol
npm run prisma migrate save --experimental
```
4. Migrate your database:
```bash-symbol
npm run prisma migrate up --experimental
npm run prisma migrate dev --preview-feature
```
You're ready to start working!