yesamer commented on code in PR #3753:
URL:
https://github.com/apache/incubator-kie-kogito-runtimes/pull/3753#discussion_r1816778170
##########
addons/common/jbpm-usertask-storage-jpa/src/main/resources/kie-flyway/db/user-tasks/h2/V1.0.0__jBPM_user_task_create.sql:
##########
@@ -134,16 +134,16 @@ alter table if exists jbpm_user_tasks_excluded_users
add constraint fk_jbpm_user_tasks_excluded_users_tid foreign key (task_id)
references jbpm_user_tasks(id) on delete cascade;
alter table if exists jbpm_user_tasks_attachments
-drop constraint if exists fk_user_task_attachment_tid cascade;
+drop constraint if exists fk_user_task_attachments_tid cascade;
Review Comment:
```suggestion
drop constraint if exists fk_user_tasks_attachments_tid cascade;
```
##########
addons/common/jbpm-usertask-storage-jpa/src/main/java/org/jbpm/usertask/jpa/model/CommentEntity.java:
##########
@@ -40,7 +40,7 @@ public class CommentEntity {
private Date updatedAt;
@ManyToOne(optional = false)
- @JoinColumn(name = "task_id", foreignKey = @ForeignKey(name =
"fk_user_task_comment_tid"))
+ @JoinColumn(name = "task_id", foreignKey = @ForeignKey(name =
"fk_user_task_comments_tid"))
Review Comment:
```suggestion
@JoinColumn(name = "task_id", foreignKey = @ForeignKey(name =
"fk_user_tasks_comments_tid"))
```
##########
addons/common/jbpm-usertask-storage-jpa/src/main/resources/kie-flyway/db/user-tasks/h2/V1.0.0__jBPM_user_task_create.sql:
##########
@@ -134,16 +134,16 @@ alter table if exists jbpm_user_tasks_excluded_users
add constraint fk_jbpm_user_tasks_excluded_users_tid foreign key (task_id)
references jbpm_user_tasks(id) on delete cascade;
alter table if exists jbpm_user_tasks_attachments
-drop constraint if exists fk_user_task_attachment_tid cascade;
+drop constraint if exists fk_user_task_attachments_tid cascade;
alter table if exists jbpm_user_tasks_attachments
-add constraint fk_user_task_attachment_tid foreign key (task_id) references
jbpm_user_tasks(id) on delete cascade;
+add constraint fk_user_task_attachments_tid foreign key (task_id) references
jbpm_user_tasks(id) on delete cascade;
alter table if exists jbpm_user_tasks_comments
-drop constraint if exists fk_user_task_comment_tid cascade;
+drop constraint if exists fk_user_task_comments_tid cascade;
Review Comment:
```suggestion
drop constraint if exists fk_user_tasks_comments_tid cascade;
```
##########
addons/common/jbpm-usertask-storage-jpa/src/main/java/org/jbpm/usertask/jpa/model/AttachmentEntity.java:
##########
@@ -42,7 +42,7 @@ public class AttachmentEntity {
private Date updatedAt;
@ManyToOne
- @JoinColumn(name = "task_id", foreignKey = @ForeignKey(name =
"fk_user_task_attachment_tid"))
+ @JoinColumn(name = "task_id", foreignKey = @ForeignKey(name =
"fk_user_task_attachments_tid"))
Review Comment:
```suggestion
@JoinColumn(name = "task_id", foreignKey = @ForeignKey(name =
"fk_user_tasks_attachments_tid"))
```
##########
addons/common/jbpm-usertask-storage-jpa/src/main/resources/kie-flyway/db/user-tasks/h2/V1.0.0__jBPM_user_task_create.sql:
##########
@@ -134,16 +134,16 @@ alter table if exists jbpm_user_tasks_excluded_users
add constraint fk_jbpm_user_tasks_excluded_users_tid foreign key (task_id)
references jbpm_user_tasks(id) on delete cascade;
alter table if exists jbpm_user_tasks_attachments
-drop constraint if exists fk_user_task_attachment_tid cascade;
+drop constraint if exists fk_user_task_attachments_tid cascade;
alter table if exists jbpm_user_tasks_attachments
-add constraint fk_user_task_attachment_tid foreign key (task_id) references
jbpm_user_tasks(id) on delete cascade;
+add constraint fk_user_task_attachments_tid foreign key (task_id) references
jbpm_user_tasks(id) on delete cascade;
Review Comment:
```suggestion
add constraint fk_user_tasks_attachments_tid foreign key (task_id)
references jbpm_user_tasks(id) on delete cascade;
```
##########
addons/common/jbpm-usertask-storage-jpa/src/main/resources/kie-flyway/db/user-tasks/postgresql/V1.0.0__jBPM_user_task_create.sql:
##########
@@ -134,16 +134,16 @@ alter table if exists jbpm_user_tasks_excluded_users
add constraint fk_jbpm_user_tasks_excluded_users_tid foreign key (task_id)
references jbpm_user_tasks(id) on delete cascade;
alter table if exists jbpm_user_tasks_attachments
-drop constraint if exists fk_user_task_attachment_tid cascade;
+drop constraint if exists fk_user_task_attachments_tid cascade;
alter table if exists jbpm_user_tasks_attachments
-add constraint fk_user_task_attachment_tid foreign key (task_id) references
jbpm_user_tasks(id) on delete cascade;
+add constraint fk_user_task_attachments_tid foreign key (task_id) references
jbpm_user_tasks(id) on delete cascade;
alter table if exists jbpm_user_tasks_comments
-drop constraint if exists fk_user_task_comment_tid cascade;
+drop constraint if exists fk_user_task_comments_tid cascade;
Review Comment:
```suggestion
drop constraint if exists fk_user_tasks_comments_tid cascade;
```
##########
addons/common/jbpm-usertask-storage-jpa/src/main/resources/kie-flyway/db/user-tasks/postgresql/V1.0.0__jBPM_user_task_create.sql:
##########
@@ -134,16 +134,16 @@ alter table if exists jbpm_user_tasks_excluded_users
add constraint fk_jbpm_user_tasks_excluded_users_tid foreign key (task_id)
references jbpm_user_tasks(id) on delete cascade;
alter table if exists jbpm_user_tasks_attachments
-drop constraint if exists fk_user_task_attachment_tid cascade;
+drop constraint if exists fk_user_task_attachments_tid cascade;
alter table if exists jbpm_user_tasks_attachments
-add constraint fk_user_task_attachment_tid foreign key (task_id) references
jbpm_user_tasks(id) on delete cascade;
+add constraint fk_user_task_attachments_tid foreign key (task_id) references
jbpm_user_tasks(id) on delete cascade;
alter table if exists jbpm_user_tasks_comments
-drop constraint if exists fk_user_task_comment_tid cascade;
+drop constraint if exists fk_user_task_comments_tid cascade;
alter table if exists jbpm_user_tasks_comments
-add constraint fk_user_task_comment_tid foreign key (task_id) references
jbpm_user_tasks(id) on delete cascade;
+add constraint fk_user_task_comments_tid foreign key (task_id) references
jbpm_user_tasks(id) on delete cascade;
Review Comment:
```suggestion
add constraint fk_user_tasks_comments_tid foreign key (task_id) references
jbpm_user_tasks(id) on delete cascade;
```
##########
addons/common/jbpm-usertask-storage-jpa/src/main/resources/kie-flyway/db/user-tasks/h2/V1.0.0__jBPM_user_task_create.sql:
##########
@@ -134,16 +134,16 @@ alter table if exists jbpm_user_tasks_excluded_users
add constraint fk_jbpm_user_tasks_excluded_users_tid foreign key (task_id)
references jbpm_user_tasks(id) on delete cascade;
alter table if exists jbpm_user_tasks_attachments
-drop constraint if exists fk_user_task_attachment_tid cascade;
+drop constraint if exists fk_user_task_attachments_tid cascade;
alter table if exists jbpm_user_tasks_attachments
-add constraint fk_user_task_attachment_tid foreign key (task_id) references
jbpm_user_tasks(id) on delete cascade;
+add constraint fk_user_task_attachments_tid foreign key (task_id) references
jbpm_user_tasks(id) on delete cascade;
alter table if exists jbpm_user_tasks_comments
-drop constraint if exists fk_user_task_comment_tid cascade;
+drop constraint if exists fk_user_task_comments_tid cascade;
alter table if exists jbpm_user_tasks_comments
-add constraint fk_user_task_comment_tid foreign key (task_id) references
jbpm_user_tasks(id) on delete cascade;
+add constraint fk_user_task_comments_tid foreign key (task_id) references
jbpm_user_tasks(id) on delete cascade;
Review Comment:
```suggestion
add constraint fk_user_tasks_comments_tid foreign key (task_id) references
jbpm_user_tasks(id) on delete cascade;
```
##########
addons/common/jbpm-usertask-storage-jpa/src/main/resources/kie-flyway/db/user-tasks/postgresql/V1.0.0__jBPM_user_task_create.sql:
##########
@@ -134,16 +134,16 @@ alter table if exists jbpm_user_tasks_excluded_users
add constraint fk_jbpm_user_tasks_excluded_users_tid foreign key (task_id)
references jbpm_user_tasks(id) on delete cascade;
alter table if exists jbpm_user_tasks_attachments
-drop constraint if exists fk_user_task_attachment_tid cascade;
+drop constraint if exists fk_user_task_attachments_tid cascade;
Review Comment:
```suggestion
drop constraint if exists fk_user_tasks_attachments_tid cascade;
```
##########
addons/common/jbpm-usertask-storage-jpa/src/main/resources/kie-flyway/db/user-tasks/postgresql/V1.0.0__jBPM_user_task_create.sql:
##########
@@ -134,16 +134,16 @@ alter table if exists jbpm_user_tasks_excluded_users
add constraint fk_jbpm_user_tasks_excluded_users_tid foreign key (task_id)
references jbpm_user_tasks(id) on delete cascade;
alter table if exists jbpm_user_tasks_attachments
-drop constraint if exists fk_user_task_attachment_tid cascade;
+drop constraint if exists fk_user_task_attachments_tid cascade;
alter table if exists jbpm_user_tasks_attachments
-add constraint fk_user_task_attachment_tid foreign key (task_id) references
jbpm_user_tasks(id) on delete cascade;
+add constraint fk_user_task_attachments_tid foreign key (task_id) references
jbpm_user_tasks(id) on delete cascade;
Review Comment:
```suggestion
add constraint fk_user_tasks_attachments_tid foreign key (task_id)
references jbpm_user_tasks(id) on delete cascade;
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]