nikolasburk
nativeTypes
preview feature flag has first been introduced in 2.11.0. Thanks to your continuous and awesome feedback for this feature, we're now able to release usage of native database types in the Prisma schema for General Availability 🎉
Note that this release comes with a few minor breaking changes compared to previous versions. Please read about the Breaking Changes in the release notes.
☁️ Prisma Migrate now works with cloud-hosted databases (e.g. Heroku)
Before this release, Prisma Migrate could be used to apply migrations in a cloud-hosted environment (CI/CD pipeline, manual deployment to production, staging, etc.), but it was impossible to create new migrations, due to the requirement of a shadow database.
Starting from this release, prisma migrate dev
can now be used in development with cloud-hosted databases by configuring a separate connection URL for the shadow database via a shadowDatabaseUrl
variable:
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
shadowDatabaseUrl = env("SHADOW_DATABASE_URL")
}