Releases: prisma/prisma
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
lift
2.0.0-preview-1
Since the initial Prisma 2 announcement, we've ironed out a number of bugs and added lots of improvements to Photon and Lift.
Today, we are issuing the first official Preview release: 2.0.0-preview-1
(short: preview-1
).
Major changes
- Renamed
project.prisma
toschema.prisma
(learn more) - Renamed
postgres
data source provider topostgresql
(learn more) - Support for ZEIT Now deployments for Photon JS (learn more)
Fixes and improvements per Prisma 2 repository
prisma2
- Rename
postgres
provider topostgresql
#1 prisma dev
errors for postgres #12prisma dev
can't recover from certain rust errors #20- PhotonJS Generator: Rename to
photonjs
and other improvements #27 - Rename
project.prisma
toschema.prisma
#36 - Back from SQLite in init workflow does not work #44
- working type definition example #52
- Having a case in model name breaks query engine #61
- Issue with "now dev" command #65
photonjs
- Generated code has an absolute path #95
- Dynamic dependency encoding #115
- Adjust filter operands API #9
- TypeError: cb.apply is not a function #20
- createdAt with default doesn't work #29
- Enum from MySQL are undefined #63
- Support for selecting relations of relations (and more sophisticated queries in general) #70
- Where to put generated code #77
- Update model args are always required for required fields #80