Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB
APACHE-2.0 License
Published by timsuchanek about 5 years ago
In this patch release, we reintroduced the stack trace in case of an unexpected error to the terminal output:
This is a necessity for debugging.
Published by nikolasburk about 5 years ago
Today, we are issuing the thirteenth Preview release: 2.0.0-preview-13
(short: preview-13
).
Note: Due to a German holiday, there won't be a Prisma 2 release next week. The next release
2.0.0-preview-14
will happen in two weeks, on Thursday (October 10th).
A special shoutout to @wardpeet whose PR fixed Photon's query engine on Windows 🙏
This version contains a breaking change in the _Migrations
table that Lift uses to store the migration history of a project.
Due to that change, you might encounter an error looking similar to this:
thread 'tokio-runtime-worker-0' panicked at 'Deserializing the database migration failed.:
Error("missing field `original_steps`", line: 0, column: 0)', src/libcore/result.rs:999:5
If you see that error, you need to manually delete the _Migration
table from your database as a workaround.
Prisma Studio is getting more stable! We were able to fix a number of bugs that impacted the experience when using Studio. Be sure to try the new Studio version out by entering Prisma's development mode with prisma2 dev
and open the provided Studio endpoint in your browser. You can report Studio bugs here.
Another improvement that comes with this release enables you to directly submit detailed error reports whenever the Lift CLI crashes. There won't be any cryptic Rust stracktraces any more in the terminal, instead you'll be shown a dialogue where you can confirm the error report submission.
prisma2
prisma2 init
does not find ts-node
when using starter kit "GraphQL API (+ Auth)"Just the Prisma schema
option in Blank project
flow during prisma2 init
photonjs
lift
studio
create
actionprisma dev
has stopped runningprisma-engine
Published by nikolasburk about 5 years ago
Today, we are issuing the twelfth Preview release: 2.0.0-preview-12
(short: preview-12
).
We have adjusted the way how the Photon
constructor is exported from @generated/photon
, it's not a default export any more. Therefore, it now needs to be imported as follows:
import { Photon } from '@generated/photon'
// or
const { Photon } = require('@generated/photon')
The previous import syntax is not valid any more:
import Photon from '@generated/photon'
// or
const Photon = require('@generated/photon')
In previous versions, when running prisma2 lift save
against a database that didn't exist, Lift would always create this database on your PostgreSQL or MySQL database server without further notice.
This could lead to confusion, e.g. when there is a typo in the database name. In that case, Lift would create the database with the wrong name. preview-12
now includes an extra validation step that asks explicitly if the database should be created. You can skip the prompt using the new --create-db
flag, e.g. prisma2 lift save --create-db
.
prisma2
canConnect
RPCphotonjs
lift
Published by nikolasburk about 5 years ago
Today, we are issuing the eleventh Preview release: 2.0.0-preview-11
(short: preview-11
).
For this release, we have invested a lot into fixing bugs across the stack.
Worth pointing out: We worked on the initial support for Windows. Please try it out, if you have Windows!
Try it yourself by upgrading to the latest version:
npm install -g prisma2
Please share your feedback and report any issues you might encounter!
prisma2
prisma2 init
endless spinnerprisma2 init
Error during command executionnpm install -g prisma2
with failing commandprisma2 dev
doesn't generatephotonjs
studio
lift
prisma-engine
Published by divyenduz about 5 years ago
Today, we are issuing the tenth Preview release: 2.0.0-preview-10
(short: preview-10
).
For this release, we have invested a lot into fixing bugs across the stack. Prisma Studio
got many fixes and you should check that out.
Try it yourself by upgrading to the latest version:
npm install -g prisma2
Please share your feedback and report any issues you might encounter.
prisma2
init
flowBlank project
selection in prisma2 init
flow ends on hanging No example selected
messagestudio
prisma-engine
Published by timsuchanek about 5 years ago
This release includes an important fix for the init flow, which ended up hanging with specific settings when downloading an example.
We also fixed an edge-case where you could get into an empty state https://github.com/prisma/prisma2/issues/467
Published by nikolasburk about 5 years ago
Today, we are issuing the ninth Preview release: 2.0.0-preview-9
(short: preview-9
).
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.
prisma2
prisma
repo to somewhere elsegraphql
and graphql-auth
examples when "GraphQL Boilerplate" is selected in `prisma2 initprisma init
CLI flowundefined
when you enter and delete a field in database credentials flow.photonjs
Published by nikolasburk about 5 years ago
Today, we are issuing the eighth Preview release: 2.0.0-preview-8
(short: preview-8
).
prisma2
Published by nikolasburk about 5 years ago
Today, we are issuing the seventh Preview release: 2.0.0-preview-7
(short: preview-7
).
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.
prisma2
project.prisma
fileslift
photonjs
Published by timsuchanek about 5 years ago
There was a problem in packaging the cli in the 2.0.0-preview-6
release, which broke most commands.
Published by nikolasburk about 5 years ago
Today, we are issuing the sixth Preview release: 2.0.0-preview-6
(short: preview-6
).
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.
prisma2
prisma2 generate
generates files into wrong directoryphotonjs
updateMany
should return count of updated recordswhere
statement for findMany
@id @default(cuid())
marks field as requiredlift
Published by nikolasburk about 5 years ago
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
.
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.
prisma2
seed
from prisma2 helpphotonjs
lift
Published by timsuchanek about 5 years ago
Published by timsuchanek about 5 years ago
Published by nikolasburk about 5 years ago
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 🙏
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.
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.
prisma2
photonjs
autoConnect
option from Photon lift
Published by timsuchanek over 5 years ago
Today, we are issuing the second Preview release: 2.0.0-preview-2
(short: preview-2
).
select
into select
and include
Important: If the new include
syntax doesn't show up in your editor, please delete your node_modules
directory and run npm install
again.prisma2
undefined
when you enter and delete a field in database credentials flowprisma introspect
should require Prisma filephotonjs
select
into select
and include
lift
Published by nikolasburk over 5 years ago
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
).
project.prisma
to schema.prisma
(learn more)postgres
data source provider to postgresql
(learn more)prisma2
postgres
provider to postgresql
#1prisma dev
errors for postgres #12prisma dev
can't recover from certain rust errors #20photonjs
and other improvements #27project.prisma
to schema.prisma
#36photonjs
lift