Skip to content

Commit

Permalink
minor editing pass
Browse files Browse the repository at this point in the history
  • Loading branch information
rubys committed Jan 20, 2025
1 parent ee947a3 commit bade81d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/prisma/postgres.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@ controlled by your [`fly.toml`](https://fly.io/docs/reference/configuration/#run
If a [seed command](https://www.prisma.io/docs/orm/prisma-migrate/workflows/seeding) is found in your `package.json`, it will be run once, at `fly launch` time,
immediately after the first migration.

## Converson from SQLite
## Conversion from SQLite

Converting from SQLite starts by updating your `prisma/schema.prisma` to match what you see at the top of this post. Next, remove all your existing migrations `prisma/migrations` and recreate them:
Converting from SQLite starts by updating your `prisma/schema.prisma` to match what you see at the top of this post. Next, remove all your existing migrations in your `prisma/migrations` directory and recreate them:

```
rm -rf prisma/migrations
export DATABASE_URL=postgres://$USER@localhost/localdb
npx prisma migrate dev --name init
```
Expand Down

0 comments on commit bade81d

Please sign in to comment.