Skip to content
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

Adding documentation for DB migration #2460

Merged
merged 2 commits into from
Dec 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion forms-flow-api/src/formsflow_api/constants/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def default_flow_xml_data(name="Defaultflow"):
modeler:executionPlatform="Camunda Platform"
modeler:executionPlatformVersion="7.15.0">
<bpmn:process id="{name}" name="{name}" isExecutable="true">
<bpmn:startEvent id="StartEvent_1" name="Default Flow Started">
<bpmn:startEvent id="StartEvent_1" name="Default Flow Started" camunda:asyncAfter="true">
<bpmn:outgoing>Flow_09rbji4</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:task id="Audit_Task_Executed" name="Execute Audit Task">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ formsflow.ai:


camunda.bpm:
database:
schema-update: true
job-execution:
enabled: true
history-level: ${CAMUNDA_BPM_HISTORY_LEVEL:none}
Expand Down
10 changes: 10 additions & 0 deletions forms-flow-bpm/migration/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
### Migration tasks for BPM
This document lists down any manual execution needed as part of the migration between versions.

### DB Migration
Source : https://artifacts.camunda.com/ui/native/camunda-bpm/org/camunda/bpm/distro/camunda-sql-scripts/

#### v6.0.2 to 7.0.0
Execute the database scripts under scripts/7.0.0.sql


27 changes: 27 additions & 0 deletions forms-flow-bpm/migration/scripts/7.0.0.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
--
-- Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
-- under one or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information regarding copyright
-- ownership. Camunda licenses this file to you under the Apache License,
-- Version 2.0; 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.
--

insert into ACT_GE_SCHEMA_LOG
values ('1000', CURRENT_TIMESTAMP, '7.21.0');

alter table ACT_RU_EXT_TASK
add column CREATE_TIME_ timestamp;

alter table ACT_RU_JOB
add column ROOT_PROC_INST_ID_ varchar(64);

create index ACT_IDX_JOB_ROOT_PROCINST on ACT_RU_JOB(ROOT_PROC_INST_ID_);
2 changes: 1 addition & 1 deletion forms-flow-web/src/components/Modeler/helpers/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const createNewProcess = () => {
const blankProcessXML = `<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" id="${definitionID}" targetNamespace="http://bpmn.io/schema/bpmn" xmlns:modeler="http://camunda.org/schema/modeler/1.0" exporter="Camunda Modeler" exporterVersion="5.0.0" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.17.0">
<bpmn:process id="${processID}" isExecutable="${isExecutable}">
<bpmn:startEvent id="StartEvent_1"/>
<bpmn:startEvent id="StartEvent_1" camunda:asyncAfter="true"/>
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="${processID}">
Expand Down
Loading