From 43e3389d4cc8eff0152caf34c812533899e010d9 Mon Sep 17 00:00:00 2001 From: Deepak Joseph Date: Fri, 3 Jan 2025 18:13:41 +0530 Subject: [PATCH] Increased comment column size --- ...r_tasks_comments_increase_comment_size.sql | 20 +++++++++++++++++++ ...r_tasks_comments_increase_comment_size.sql | 20 +++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 addons/common/jbpm-usertask-storage-jpa/src/main/resources/kie-flyway/db/user-tasks/h2/V1.0.2__jBPM_user_tasks_comments_increase_comment_size.sql create mode 100644 addons/common/jbpm-usertask-storage-jpa/src/main/resources/kie-flyway/db/user-tasks/postgresql/V1.0.2__jBPM_user_tasks_comments_increase_comment_size.sql diff --git a/addons/common/jbpm-usertask-storage-jpa/src/main/resources/kie-flyway/db/user-tasks/h2/V1.0.2__jBPM_user_tasks_comments_increase_comment_size.sql b/addons/common/jbpm-usertask-storage-jpa/src/main/resources/kie-flyway/db/user-tasks/h2/V1.0.2__jBPM_user_tasks_comments_increase_comment_size.sql new file mode 100644 index 00000000000..c68cd124a92 --- /dev/null +++ b/addons/common/jbpm-usertask-storage-jpa/src/main/resources/kie-flyway/db/user-tasks/h2/V1.0.2__jBPM_user_tasks_comments_increase_comment_size.sql @@ -0,0 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +ALTER TABLE jbpm_user_tasks_comments ALTER COLUMN comment SET DATA TYPE VARCHAR(1000); diff --git a/addons/common/jbpm-usertask-storage-jpa/src/main/resources/kie-flyway/db/user-tasks/postgresql/V1.0.2__jBPM_user_tasks_comments_increase_comment_size.sql b/addons/common/jbpm-usertask-storage-jpa/src/main/resources/kie-flyway/db/user-tasks/postgresql/V1.0.2__jBPM_user_tasks_comments_increase_comment_size.sql new file mode 100644 index 00000000000..af9809a4a73 --- /dev/null +++ b/addons/common/jbpm-usertask-storage-jpa/src/main/resources/kie-flyway/db/user-tasks/postgresql/V1.0.2__jBPM_user_tasks_comments_increase_comment_size.sql @@ -0,0 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +ALTER TABLE jbpm_user_tasks_comments ALTER COLUMN comment TYPE VARCHAR(1000);