-
Notifications
You must be signed in to change notification settings - Fork 195
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
🐛 Added PK on connection strategy EAV tables #342
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
@@ -1,4 +1,5 @@ | ||||||||||
|
||||||||||
|
||||||||||
-- ************************************** webhooks_reponses | ||||||||||
|
||||||||||
CREATE TABLE webhooks_reponses | ||||||||||
|
@@ -229,8 +230,8 @@ CREATE TABLE cs_values | |||||||||
( | ||||||||||
id_cs_value uuid NOT NULL, | ||||||||||
value text NOT NULL, | ||||||||||
id_ct_attribute uuid NOT NULL | ||||||||||
|
||||||||||
id_ct_attribute uuid NOT NULL, | ||||||||||
CONSTRAINT PK_ct_values PRIMARY KEY ( id_cs_value ) | ||||||||||
); | ||||||||||
|
||||||||||
|
||||||||||
|
@@ -245,8 +246,8 @@ CREATE TABLE cs_values | |||||||||
CREATE TABLE cs_entities | ||||||||||
( | ||||||||||
id_cs_entity uuid NOT NULL, | ||||||||||
id_connection_strategy uuid NOT NULL | ||||||||||
|
||||||||||
id_connection_strategy uuid NOT NULL, | ||||||||||
CONSTRAINT PK_ct_entities PRIMARY KEY ( id_cs_entity ) | ||||||||||
Comment on lines
+249
to
+250
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The primary key constraint name - CONSTRAINT PK_ct_entities PRIMARY KEY ( id_cs_entity )
+ CONSTRAINT PK_cs_entities PRIMARY KEY ( id_cs_entity ) Committable suggestion
Suggested change
|
||||||||||
); | ||||||||||
|
||||||||||
|
||||||||||
|
@@ -263,8 +264,8 @@ CREATE TABLE cs_attributes | |||||||||
id_cs_attribute uuid NOT NULL, | ||||||||||
id_cs_entity uuid NOT NULL, | ||||||||||
attribute_slug text NOT NULL, | ||||||||||
data_type text NOT NULL | ||||||||||
|
||||||||||
data_type text NOT NULL, | ||||||||||
CONSTRAINT PK_ct_attributes PRIMARY KEY ( id_cs_attribute ) | ||||||||||
Comment on lines
+267
to
+268
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The primary key constraint name - CONSTRAINT PK_ct_attributes PRIMARY KEY ( id_cs_attribute )
+ CONSTRAINT PK_cs_attributes PRIMARY KEY ( id_cs_attribute ) Committable suggestion
Suggested change
|
||||||||||
); | ||||||||||
|
||||||||||
|
||||||||||
|
@@ -323,8 +324,8 @@ CREATE TABLE connection_strategies | |||||||||
( | ||||||||||
id_connection_strategy uuid NOT NULL, | ||||||||||
type text NOT NULL, | ||||||||||
id_project uuid NULL | ||||||||||
|
||||||||||
id_project uuid NULL, | ||||||||||
CONSTRAINT PK_connection_strategies PRIMARY KEY ( id_connection_strategy ) | ||||||||||
); | ||||||||||
|
||||||||||
|
||||||||||
|
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.
The primary key constraint name
PK_ct_values
does not match the table namecs_values
. It's crucial for the constraint name to reflect the table it belongs to for clarity and consistency.Committable suggestion