2.3.2 • Published 2 years 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
2 years ago
2.3.1
3 years ago
2.3.0
3 years ago
2.2.2
3 years ago
2.2.1
3 years ago
2.2.0
3 years ago
2.1.28
3 years ago
2.1.27
3 years ago
2.1.23
3 years ago
2.1.22
3 years ago
2.1.21
3 years ago
2.1.20
3 years ago
2.1.19
3 years ago
2.1.18
3 years ago
2.1.17
3 years ago
2.1.16
3 years ago
2.1.15
3 years ago
2.1.14
3 years ago
2.1.13
3 years ago
2.1.12
3 years ago
2.1.11
3 years ago
2.1.10
3 years ago
2.1.9
3 years ago
2.1.8
3 years ago
2.1.7
3 years ago
2.1.2
3 years ago
2.1.1
3 years ago
2.1.0
3 years ago
1.1.22
3 years ago
1.1.21
3 years ago
1.1.20
3 years ago
1.1.19
3 years ago
1.1.18
3 years ago
1.1.17
3 years ago
1.1.16
3 years ago
1.1.13
3 years ago
1.1.12
3 years ago
1.1.11
3 years ago
2.0.1
3 years ago
1.1.10
3 years ago
1.1.8
3 years ago
2.0.0
3 years ago
1.1.6
3 years ago
1.0.22
3 years ago
1.0.21
3 years ago
1.0.20
3 years ago
1.0.19
3 years ago
1.0.18
3 years ago
1.0.17
3 years ago
1.0.16
3 years ago
1.0.15
3 years ago
1.0.14
3 years ago
1.0.13
3 years ago
1.0.12
3 years ago
1.0.11
3 years ago
1.0.10
3 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago