menu

Prisma

πŸ”΄ The Prisma Spectrum community is not officially managed by Prisma's support team any more. Please seek help on GitHub or on Slack instead. Learn more: https://spectrum.chat/prisma/general/where-and-how-to-best-seek-help-with-questions-problems~687a1b8f-8658-4df3-8849-ea5ab3503f28

Channels
Chat
view-forward
# All channels
view-forward
# General
view-forward
# Beta
view-forward
# Community
view-forward
# GraphQL
view-forward
# OSS
view-forward
# Random
view-forward
Team

πŸš€ Releasing Prisma v1.31

April 17, 2019 at 3:20pm

πŸš€ Releasing Prisma v1.31

April 17, 2019 at 3:20pm
Hey everyone, we've just released Prisma v1.31 πŸš€
This release features an improved datamodel syntax (breaking change) that gives developers more control over the database layout created by Prisma. Here are a few things that are now possible with the new datamodel:
  • Specify whether a relation should use a relation table or foreign keys
  • Model and field names can differ from the names of the underlying tables and columns
  • Use any field as id field and "bring your own ID"
  • Use any field as createdAt or updatedAt fields
You can read everything about the new features in the announcement blog post.
Learn how to upgrade your existing projects in the docs or by following this tutorial video.
By the way, we have also improved our introspection worfklows a lot! This makes it even easier for developers to get started with Prisma using a legacy database. Oh, and we've finally enabled introspection for MySQL databases as well 😼

April 17, 2019 at 4:20pm
Great Job !
  • reply
  • like
hope to see the integration with faunaDB ;)
  • reply
  • like
Does this new datamodel work with mongoDB?
  • reply
  • like
I am using Prisma to build an all new app (new DB, too). This update seems like it may be more geared toward those who are using legacy DBs. Is that the case, or are there great benefits to those like me who are building green-field projects?
  • reply
  • like
MongoDB actually was initially launched with the new datamodel syntax, so yes it works also with Mongo πŸ™‚ there are minor differences though such that the SQL connectors don't support embedded types yet, while the Mongo connector does support them (we'll document these differences in more detail soon).
Edited
like-fill
1
  • reply
  • like
That's really up to you πŸ™‚ If you don't care much about having more control over your database schema (e.g. deciding how your table/columns are named or whether relations are represented as relation tables or foreign keys), then there's no need for you to upgrade. The datamodel has just become more flexible, if you're happy with the current version you can safely keep running it!
Also note that it can sometimes improve your performance to represent a relation via foreign keys (instead of a relation table), so that's one reason why you might want to upgrade.
like-fill
1
  • reply
  • like
Good news, but I try to use the instrospection for MySQL and found this problem: https://github.com/prisma/prisma/issues/4376
  • reply
  • like

April 25, 2019 at 5:45pm
' really great work again. I love it!
  • reply
  • like

April 26, 2019 at 2:18am
Is there any documentation anywhere about upgrading a service running on prisma cloud via heroku integration? I've successfully updated my local datamodel to the new syntax, but I can't find anything regarding a hosted solution. Any ideas?
  • reply
  • like

April 30, 2019 at 4:05pm
Still no UUID primary key support for mySQL? The docs say UUID is supported, but the code says no! Is there docs on the reality?
  • reply
  • like
Hey , thanks a lot for your message! UUID should be supported from 1.31 upwards. If you're encountering a problem with that, please open an issue on GitHub so we can fix it :)
EDIT: Sorry, my bad! UUID is indeed only supported with PostgreSQL at the moment. We'll update the docs accordingly.
Edited
  • reply
  • like

May 1, 2019 at 3:03pm

May 5, 2019 at 3:18pm
I'd love to know more about the process used to create the spectrum.chat integration. Would love to do something similar for my website but need some pointers ad to how to begin...
  • reply
  • like

June 6, 2019 at 7:01am
nkejwr
  • reply
  • like
werjwejrwe rweq
  • reply
  • like
werjowqerkpwerwqerwerwerwqerjr
  • reply
  • like
rwoeijrpoeirwq
  • reply
  • like
r
  • reply
  • like
w
  • reply
  • like
rewrqwrw
  • reply
  • like
r
  • reply
  • like
w
  • reply
  • like
r
  • reply
  • like
wer
  • reply
  • like
erwrjiwrj
  • reply
  • like
Show more messages