-
Notifications
You must be signed in to change notification settings - Fork 153
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
Remove unique #5755
Remove unique #5755
Conversation
🦋 Changeset detectedLatest commit: ddcd886 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a couple of leftover related to the the @unique
fields but apart from that LGTM!
@@ -80,9 +79,6 @@ export class ConcreteEntityAdapter { | |||
|
|||
if (attributeAdapter.isConstrainable()) { | |||
this.constrainableFieldsKeys.push(attribute.name); | |||
if (attributeAdapter.isUnique()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the whole logic could isConstrainable
can be removed from both here and Interfaces, could you confirm this?
@@ -112,10 +111,6 @@ export class InterfaceEntityAdapter { | |||
* used to generate different types for the Entity that contains these Attributes | |||
*/ | |||
|
|||
public get uniqueFields(): AttributeAdapter[] { | |||
return this.uniqueFieldsKeys.map((key) => getFromMap(this.attributes, key)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uniqueFieldsKeys
attribute has to be removed as well
47c86b7
to
ddcd886
Compare
Description
Remove
@unique
directive and update testsSome code is still leftover from
connectOrCreate
, which is implicitly removed by this PR