Releases: prisma/prisma
2.0.0-preview-9
Today, we are issuing the ninth Preview release: 2.0.0-preview-9
(short: preview-9
).
Major changes
For this release, we have invested a lot into making the prisma2 init
command a lot more approachable and user-friendly. The wizard that's launched by prisma2 init
helps you to set up a new project. With this release, the wizard becomes a lot more robust and provides a clearer user flows than before.
Try it yourself by upgrading to the latest version and using the init
command:
npm install -g prisma2
prisma2 init hello-world
Please share your feedback for the init
flow and report any issues you might encounter.
Fixes and improvements per Prisma 2 repository
prisma2
- Prisma starter in init already has migrations
- use rewritten introspection in migration engine
- [EPIC] Move prisma 2 rust code from
prisma
repo to somewhere else - Zeit Now Deployment
- Serverless (Faas) compatibility
- [Suggestion] Optimize the Prisma2 Spec Document Example
- Documentation should clarify not implemented features
- Cannot use @relation(id) to specify the side of the relation
- Prisma2 and Docker
- Prisma2 CLI is binary on Ubuntu 16.04 doesn't link to install libssl
- ID not incremented on MySQL and Postgres
- Fetch the correct binary for EC2 started with Amazon Linux 2 + x86
- Create a Windows Binary
Fixed by the new init flow
- ENOENT running prisma2 init
- Init flow requires an empty directory
- Prisma CLI merges
graphql
andgraphql-auth
examples when "GraphQL Boilerplate" is selected in `prisma2 init - EPIC Implement new
prisma init
CLI flow - When connecting to existing MySQL, prisma2 init wizard ends at the introspect step and does not select prisma tools ( Photon, Lift ) nor generate any boilerplate.
- CLI generated
undefined
when you enter and delete a field in database credentials flow.
photonjs
2.0.0-preview-8
Today, we are issuing the eighth Preview release: 2.0.0-preview-8
(short: preview-8
).
Fixes and improvements per Prisma 2 repository
prisma2
2.0.0-preview-7
Today, we are issuing the seventh Preview release: 2.0.0-preview-7
(short: preview-7
).
Major changes
With this release, we've put major efforts into making Lift's migration engine more performant. Especially remote migrations benefit from significant performance improvements in this release.
Fixes and improvements per Prisma 2 repository
prisma2
- Prisma on linux
- Drop support for recognizing
project.prisma
files - Photon QueryError because WrongType(Type(Text)) for @default(uuid()) on Postgres
- Error when using Photon to create new item with 2 relation connections
- Query engine fails for querying implicit back relation
lift
photonjs
2.0.0-preview-6.1
Fixes
There was a problem in packaging the cli in the 2.0.0-preview-6
release, which broke most commands.
2.0.0-preview-6
Today, we are issuing the sixth Preview release: 2.0.0-preview-6
(short: preview-6
).
Major changes
Next to a lot of bug fixes, this release ships with a completely overhauled core of the Prisma query engine which makes the resolution of Photon queries a lot more stable.
Unfortunately, due to the overhaul there is one known regression to be aware of: Required relations are not enforced as NOT NULL
on the database level. They are enforced by the query engine though. This is intermediate until we have fixed a limitation in the query engine. You can track the progress of this issue here.
Fixes and improvements in the Prisma 2 repository
prisma2
- [Preview3]Error when prisma2 generate
prisma2 generate
generates files into wrong directory- Init flow creates projects inside a "prisma" folder, if it exists
photonjs
- Now dev causes: Cannot find module "node_modules/@generated/photon/index.d.ts"
- photon.dmmf.schema.outputTypes has duplicated Query & Mutation
- Photon is not throwing a full Rust backtrace for panics
updateMany
should return count of updated records- Inconsistent type generation
- Support empty
where
statement forfindMany
- "set" throwing error
- Correct the description
- sqlite
@id @default(cuid())
marks field as required - ID not incremented on MySQL
- SQLite: Queries in large tables result in error: "too many SQL variables"
- RelationFieldNotFound on nested create/connect
- Self-referential Data Modeling Leads to Unexpected Behavior
- NullConstraintViolation related to DateTime type
- Postgres + @@map causes a crash
- Error for Float type (postgresql)
- Simple nested update mutation fails
- Bring your own ID fails
lift
2.0.0-preview-5
Today, we are issuing the fifth Preview release: 2.0.0-preview-5
(short: preview-5
).
In case you wonder where preview-4
is - there was a mistake in our build pipeline which skipped preview-4
.
Major changes
In this release, we've focused a lot on making Photon and Lift more stable and ironed out a number of critical and annoying bugs.
For example, you can finally use environment variables in your Prisma schema, apply @default(now())
to DateTime
fields or connect to database with credentials that contain special characters.
Fixes and improvements in the Prisma 2 repository
prisma2
- Structured JSON logging
- prisma2 commands do not recognize environment variables.
- Fix Netlify examples
- CLI is not writing SSL option to the URL
- [Preview 2] Error on saving migration
- Relations Foreign Key Reference
- [Preview3]Error when prisma2 generate
- Passwords with special characters don't work
- Typescript export ModelClient
- Can't deleteMany when using UUID
- Error in Photon when where object is empty
- when prisma2 init newProject
- Error running lift up for the first time with sqlite
- Inconsistent type generation
- Remove
seed
from prisma2 help - Init flow creates projects inside a "prisma" folder, if it exists
photonjs
lift
2.0.0-preview-3.2
Fixes
- Fixes the binary fetching logic to get the latest binary. Necessary to make https://github.com/prisma/prisma2/releases/tag/2.0.0-preview-3.1 available.
2.0.0-preview-3.1
Fixes
- Fixes a regression in the migration engine, which couldn't read migrations properly from the database prisma/migrate#74
2.0.0-preview-3
Today, we are issuing the third Preview release: 2.0.0-preview-3
(short: preview-3
).
A special shoutout to @Errorname for helping us fix a small but significant issue in Photon JS 🙏
Major changes
In this release, we've focused on making Photon deployment easier. You can now precisely determine which version of the query engine binary Photon should be using with the new platforms
and pinnedPlatform
options on the photonjs
generator. Read more about this change in the docs.
Breaking change
We've removed the autoConnect
property from the Photon
constructor to make the connection behavior more explicit and improve error handling. Photon will continue to lazily connect if you do a query.
Fixes and improvements in the Prisma 2 repository
prisma2
photonjs
- Generate relative to Prisma schema file
- Cannot update with null or undefined
- Breaking Remove
autoConnect
option from Photon
lift
2.0.0-preview-2
Today, we are issuing the second Preview release: 2.0.0-preview-2
(short: preview-2
).
Major changes
- Split up
select
intoselect
andinclude
Important: If the newinclude
syntax doesn't show up in your editor, please delete yournode_modules
directory and runnpm install
again. - Google Cloud Functions Support
Fixes and improvements per Prisma 2 repository
prisma2
- CLI generated
undefined
when you enter and delete a field in database credentials flow prisma introspect
should require Prisma file- Postgres port gets added by default to Connection String when you edit MySQL form
- Photon should allow UUID for string input fields
- Fetch the correct binary for zeit
- Google Cloud Functions Support
photonjs
- Split up
select
intoselect
andinclude
- Print the absolute path of generation
- Generated code has an absolute path