Prisma

Latest version: v0.15.0

Safety actively analyzes 685670 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 28 of 44

2.0.0preview13

Today, we are issuing the thirteenth [Preview release](https://github.com/prisma/prisma2/blob/master/docs/releases.md#preview): `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 🙏

Breaking changes

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.

Major changes

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](https://github.com/prisma/studio/issues).

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.

Fixes and improvements per Prisma 2 repository

`prisma2`

- [Limitations: Missing out of scope, Details for Custom Types](https://github.com/prisma/prisma2/issues/603)
- [Document the HTTP proxy feature](https://github.com/prisma/prisma2/issues/577)
- [Installation of prisma2 behind corporate proxy](https://github.com/prisma/prisma2/issues/506)
- [Init flow with Postgres - schema off by one](https://github.com/prisma/prisma2/issues/496)
- [`prisma2 init` does not find `ts-node` when using starter kit "GraphQL API (+ Auth)"](https://github.com/prisma/prisma2/issues/482)
- [Can't select `Just the Prisma schema` option in `Blank project` flow during `prisma2 init`](https://github.com/prisma/prisma2/issues/473)
- [Clarify when/whether limitations are expected to be resolved](https://github.com/prisma/prisma2/issues/345)
- [Temporary error telemetry flow in CLI](https://github.com/prisma/prisma2/issues/397)

`photonjs`

- [Nested reads](https://github.com/prisma/photonjs/issues/218)
- [Loose connection with MySQL](https://github.com/prisma/photonjs/issues/69)

`lift`

- [`Unexpected token.` when running `prisma2 lift save` after adding custom type definition](https://github.com/prisma/lift/issues/94)

`studio`

- [Focus first cell when creating a row](https://github.com/prisma/studio/issues/150)
- [Automatically increase pagination count after committing a `create` action](https://github.com/prisma/studio/issues/149)
- [Sidebar improvements](https://github.com/prisma/studio/issues/147)
- [Tabs button is off](https://github.com/prisma/studio/issues/145)
- [UI Regression: Improve design when `prisma dev` has stopped running](https://github.com/prisma/studio/issues/143)
- [Selected cell: Hitting enter should make cell editable](https://github.com/prisma/studio/issues/142)
- [Databrowser: Adjust visual state when record is selected](https://github.com/prisma/studio/issues/118)
- [Cell editing design is off](https://github.com/prisma/studio/issues/102)
- [Editing boolean cell should directly open dropdown](https://github.com/prisma/studio/issues/97)

`prisma-engine`

- [Datamodel Parser: Multi field unique](https://github.com/prisma/prisma-engine/issues/62)

2.0.0preview12

Today, we are issuing the twelfth [Preview release](https://github.com/prisma/prisma2/blob/master/docs/releases.md#preview): `2.0.0-preview-12` (short: `preview-12`).

Breaking changes

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:

ts
import { Photon } from 'generated/photon'
// or
const { Photon } = require('generated/photon')


The previous import syntax is **not valid** any more:

ts
import Photon from 'generated/photon'
// or
const Photon = require('generated/photon')


Major changes

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`.

Fixes and improvements per Prisma 2 repository

`prisma2`

- [Project bootstrapped by the init flow should use the latest version of prisma2](https://github.com/prisma/prisma2/issues/548)
- [Migration Engine: Add `canConnect` RPC](https://github.com/prisma/prisma2/issues/403)

`photonjs`

- [Generated typings are not working properly with JavaScript](https://github.com/prisma/photonjs/issues/87)

`lift`

- [Remove database create logic inside lift, fail fast if the database doesn't exist.](https://github.com/prisma/lift/issues/122)

2.0.0preview11

Today, we are issuing the eleventh [Preview release](https://github.com/prisma/prisma2/blob/master/docs/releases.md#preview): `2.0.0-preview-11` (short: `preview-11`).

Major changes

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](https://github.com/prisma/prisma2/blob/master/docs/prisma2-feedback.md) and [report any issues](https://github.com/prisma/prisma2/issues) you might encounter!

Fixes and improvements per Prisma 2 repository

`prisma2`

- [[Windows] `prisma2 init` endless spinner](https://github.com/prisma/prisma2/issues/505)
- [[Windows] `prisma2 init` Error during command execution](https://github.com/prisma/prisma2/issues/504)
- [[Windows] `npm install -g prisma2` with failing command](https://github.com/prisma/prisma2/issues/503)
- [`prisma2 dev` doesn't generate](https://github.com/prisma/prisma2/issues/495)
- [CLI + Photon: Download and use Windows binary](https://github.com/prisma/prisma2/issues/460)
- [Update documentation to not contain not yet implemented functionality](https://github.com/prisma/prisma2/issues/433)
- [Temporary error telemetry docs](https://github.com/prisma/prisma2/issues/396)
- [Lift and Photon search for database in different folders](https://github.com/prisma/prisma2/issues/356)
- [Upload introspection engine binary to S3](https://github.com/prisma/prisma-engine/issues/26)

`photonjs`

- [Sqlite path can't be ovewritten](https://github.com/prisma/photonjs/issues/223)
- [Missing documentation property in DMMF.Field and DMMF.Model](https://github.com/prisma/photonjs/issues/193)
- ["Field does not exist on enclosing type" when using notIn](https://github.com/prisma/photonjs/issues/190)

`studio`

- [Disable expanding loading fields](https://github.com/prisma/studio/issues/110)
- [Weird scrolling bug when using code queries](https://github.com/prisma/studio/issues/109)
- [Pagination is broken](https://github.com/prisma/studio/issues/106)
- [Code snippet lost after reloading/reopening](https://github.com/prisma/studio/issues/105)
- [Clicking outside the editable cell should unselect it](https://github.com/prisma/studio/issues/92)
- [Error message: Weird stacktrace encoding](https://github.com/prisma/studio/issues/89)
- [isDirty Error on Studio](https://github.com/prisma/studio/issues/87)
- [How does limbo affect tabs?](https://github.com/prisma/studio/issues/86)
- [Always centered new tab dropdown](https://github.com/prisma/studio/issues/84)
- [Tree view: Add loading indicator (and other improvements)](https://github.com/prisma/studio/issues/68)
- [Tree view: Error when expanding an empty list](https://github.com/prisma/studio/issues/67)
- [Add "Reload" button + report issue flow](https://github.com/prisma/studio/issues/66)
- [Add ability to open the same script in multiple tabs](https://github.com/prisma/studio/issues/61)
- [Project selector on Electron needs to be scrollable on smaller screens](https://github.com/prisma/studio/issues/58)
- [Design idea: Apply "type icons" from tree view to table header](https://github.com/prisma/studio/issues/49)
- [Preview Tabs](https://github.com/prisma/studio/issues/14)

`lift`

- [unique does not work for columns using map](https://github.com/prisma/lift/issues/117)
- [Windows database_migration datamodel_steps too small](https://github.com/prisma/lift/issues/112)
- [Lift overshoots with the database steps](https://github.com/prisma/studio/issues/100)
- [Error running Lift on Windows](https://github.com/prisma/studio/issues/22)

`prisma-engine`

- [Clean up internal introspection naming](https://github.com/prisma/prisma-engine/issues/27)
- [Upload introspection engine binary to S3](https://github.com/prisma/prisma-engine/issues/26)

2.0.0preview10

Today, we are issuing the tenth [Preview release](https://github.com/prisma/prisma2/blob/master/docs/releases.md#preview): `2.0.0-preview-10` (short: `preview-10`).

Major changes

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](https://github.com/prisma/prisma2/blob/master/docs/prisma2-feedback.md) and [report any issues](https://github.com/prisma/prisma2/issues) you might encounter.

Fixes and improvements per Prisma 2 repository

`prisma2`

- [Minor UI issue with `init` flow](https://github.com/prisma/prisma2/issues/480)
- [`Blank project` selection in `prisma2 init` flow ends on hanging `No example selected` message](https://github.com/prisma/prisma2/issues/467)
- [Examples and Docs should not use both id and unique](https://github.com/prisma/prisma2/issues/426)
- [Missing credentials in Postgres URL: Got invalid RPC response without .result property](https://github.com/prisma/prisma2/issues/381)

`studio`

- [Enums are not rendered](https://github.com/prisma/studio/issues/82)
- [Arrow-button on the bottom-left doesn't make the sidebar stick](https://github.com/prisma/studio/issues/80)
- [Horizontal scrolling bug](https://github.com/prisma/studio/issues/71)
- [Very slow for larger collections](https://github.com/prisma/studio/issues/70)
- [Manage orphaned sessions](https://github.com/prisma/studio/issues/62)
- [Designs for when you try to close a dirty tab](https://github.com/prisma/studio/issues/60)

`prisma-engine`

- [Build a prototype to compare performance of synchronous and asynchronous database drivers](https://github.com/prisma/prisma-engine/issues/8)

2.0.0-preview-9.1
Fixes

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

2.0.0preview9

Today, we are issuing the ninth [Preview release](https://github.com/prisma/prisma2/blob/master/docs/releases.md#preview): `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](https://github.com/prisma/prisma2/blob/master/docs/prisma2-feedback.md) for the `init` flow and [report any issues](https://github.com/prisma/prisma2/issues) you might encounter.

Fixes and improvements per Prisma 2 repository

`prisma2`

- [Prisma starter in init already has migrations](https://github.com/prisma/prisma2/issues/399)
- [use rewritten introspection in migration engine](https://github.com/prisma/prisma2/issues/391)
- [[EPIC] Move prisma 2 rust code from `prisma` repo to somewhere else](https://github.com/prisma/prisma2/issues/390)
- [Zeit Now Deployment](https://github.com/prisma/prisma2/issues/357)
- [Serverless (Faas) compatibility](https://github.com/prisma/prisma2/issues/276)
- [[Suggestion] Optimize the Prisma2 Spec Document Example](https://github.com/prisma/prisma2/issues/272)
- [Documentation should clarify not implemented features](https://github.com/prisma/prisma2/issues/251)
- [Cannot use relation(id) to specify the side of the relation](https://github.com/prisma/prisma2/issues/185)
- [Prisma2 and Docker](https://github.com/prisma/prisma2/issues/164)
- [Prisma2 CLI is binary on Ubuntu 16.04 doesn't link to install libssl](https://github.com/prisma/prisma2/issues/157)
- [ID not incremented on MySQL and Postgres](https://github.com/prisma/prisma2/issues/135)
- [Fetch the correct binary for EC2 started with Amazon Linux 2 + x86](https://github.com/prisma/prisma2/issues/93)
- [Create a Windows Binary](https://github.com/prisma/prisma2/issues/4)

Fixed by the new init flow
- [ENOENT running prisma2 init](https://github.com/prisma/prisma2/issues/353)
- [Init flow requires an empty directory](https://github.com/prisma/prisma2/issues/344)
- [Prisma CLI merges `graphql` and `graphql-auth` examples when "GraphQL Boilerplate" is selected in `prisma2 init](https://github.com/prisma/prisma2/issues/321)
- [EPIC Implement new `prisma init` CLI flow](https://github.com/prisma/prisma2/issues/278)
- [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.](https://github.com/prisma/prisma2/issues/49)
- [CLI generated `undefined` when you enter and delete a field in database credentials flow.](https://github.com/prisma/prisma2/issues/26)

`photonjs`

- [Add pretty datamodel parser error for `get_config`](https://github.com/prisma/photonjs/issues/200)

2.0.0preview8

Today, we are issuing the eighth [Preview release](https://github.com/prisma/prisma2/blob/master/docs/releases.md#preview): `2.0.0-preview-8` (short: `preview-8`).

Fixes and improvements per Prisma 2 repository

`prisma2`

- [SQLite relative path is broken](https://github.com/prisma/prisma2/issues/367)
- [Tab characters make schema parser unhappy + unclear error](https://github.com/prisma/prisma2/issues/327)
- [MySQL 5.7 "Error in lift engine for rpc listMigrations" when DB name has a hyphen](https://github.com/prisma/prisma2/issues/311)

Page 28 of 44

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.