Breaking Changes
The new datamodel syntax introduced in this release is a breaking change. Read the announcement article or learn how to upgrade to the new datamodel version.
Features
- This release features an improved version of the datamodel syntax. It provides more control over the database layout that Prisma creates. Some of the new features include:
- Specify whether a relation should use a relation table or foreign keys
- Model/field names can differ from the names of the underlying tables/columns
- Use any field as
id
field and "bring your own ID" - Use any field as
createdAt
orupdatedAt
fields
- Introspection for MySQL (prisma/prisma#2506)
Fixes
- fd2b00a fix(missing-service): create if service does not exist for non-local servers (prisma/prisma-1-cloud-feedback#205)
- c2929de fix(init-directory): lazy create directory (prisma/prisma#4072)
- Fix compatibility with MariaDB (prisma/prisma#4367)
- a6878e9 fix(mongo): add test for embedded type
- 203642d fix(wording): docker-compose file
- 489f325 fix(mongo): more forgiving introspection
- 1fa33f3 CLI/Datamodel: Parser for postgres now respects createdAt, updatedAt, id directives
- e3d50e0 feat(warn): export and import