2.3.2 • Published 1 year ago
@wandity/users-prisma-client v2.3.2
Prisma Migrations
Modifying schema
Steps
- Modify schema.prisma
- run
npm run migrate:dev
to create a database migration with the modified schema structure - run
npm run generate
to generate the prisma client files to publish - change the version number in the package.json inside the prisma/community-client-package (to publish the package).
- The package will be published (GitHub Actions) when we push to
dev
and thera are changes in the prisma/community-client-package directory
- The package will be published (GitHub Actions) when we push to
- the push to
dev
will also trigger a GitHub Action to deploy to staging at Fly.io. This will runnpx prisma migrate deploy
to apply the migration to the "production/staging" database. This command is set up in fly.toml. - Update version in the package clients. For community prisma client only in the wandity-remix project for now.
- Prisma has two commands:
- prisma migrate dev to generate migrations in the development environment
- prisma migrate deploty to apply migrations to production/staging (in CI/CD) using the DATABASE_URL env variable
- https://www.prisma.io/docs/concepts/components/prisma-migrate/migrate-development-production
Development
- The database url is saved in .env
2.3.2
1 year ago
2.3.1
1 year ago
2.3.0
1 year ago
2.2.2
1 year ago
2.2.1
1 year ago
2.2.0
1 year ago
2.1.28
1 year ago
2.1.27
1 year ago
2.1.23
1 year ago
2.1.22
1 year ago
2.1.21
1 year ago
2.1.20
1 year ago
2.1.19
1 year ago
2.1.18
1 year ago
2.1.17
1 year ago
2.1.16
1 year ago
2.1.15
1 year ago
2.1.14
1 year ago
2.1.13
1 year ago
2.1.12
1 year ago
2.1.11
1 year ago
2.1.10
1 year ago
2.1.9
1 year ago
2.1.8
2 years ago
2.1.7
2 years ago
2.1.2
2 years ago
2.1.1
2 years ago
2.1.0
2 years ago
1.1.22
2 years ago
1.1.21
2 years ago
1.1.20
2 years ago
1.1.19
2 years ago
1.1.18
2 years ago
1.1.17
2 years ago
1.1.16
2 years ago
1.1.13
2 years ago
1.1.12
2 years ago
1.1.11
2 years ago
2.0.1
2 years ago
1.1.10
2 years ago
1.1.8
2 years ago
2.0.0
2 years ago
1.1.6
2 years ago
1.0.22
2 years ago
1.0.21
2 years ago
1.0.20
2 years ago
1.0.19
2 years ago
1.0.18
2 years ago
1.0.17
2 years ago
1.0.16
2 years ago
1.0.15
2 years ago
1.0.14
2 years ago
1.0.13
2 years ago
1.0.12
2 years ago
1.0.11
2 years ago
1.0.10
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago