New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Unsupported, dbgenerated() and @@ignore #679
Comments
@janpio is suggesting we split the new types from supporting Unsupported+dbgenerate, @@ignore. |
On the latest Insiders version, I have verified that these things work:
Greying out
There's one PR open for |
@madebysid @tomhoule mentioned (in our team slack) that |
We've introduced two new schema properties and also changed dbgenerated(). We'd like to get support for these from the VsCode extension as soon as possible. Just not highlighting them as wrong would be fine in the beginning.
The changes in the first model are already implemented, the @@ignore from the second will also hopefully be done this sprint.
Unsupported is a new type containing a String description of a db type for migrate. It does not allow for a native type at the same time.
The db generated default changes to now always take one String argument. That is the db description necessary to set the default for migrate.
@@ignore is a new model level directive that tells the client to ignore this model. It has no arguments and is valid on all models.
AC:
Postgres: Money (mapped to Float Prisma scalar),
Postgres: InetAdress (String)
Postgres: OID (Integer)
Postgres: citext (String)
MySQL: Set (String)
Unsupported()
The text was updated successfully, but these errors were encountered: