I have a question about initing data table

we all also know the camunda data table inited when firstly use camunda, what is the standard about init camunda data table? if possible,please paste relative source code , thank you!

Hi,

Not sure I understand your question correctly. The start point to the source code that creates the database tables is camunda-bpm-platform/SchemaOperationsProcessEngineBuild.java at 3d98d2075a30afbf8b34c2dcd03841fd5bb0f678 · camunda/camunda-bpm-platform · GitHub. You can navigate into the method calls to understand the details. Please elaborate if this is not what you are looking for.

Cheers,
Thorben

Hi,
Thank you for your answer. When I used Camunda, I found a problem. My database connects to multiple Camunda databases, and when I initialize the second Camunda database, the application will report an error. I think the problem comes from the following code:
org.camunda.bpm.engine.impl.db.sql.DbSqlSession#isTablePresent

When I useDatabaseMetaData getTables, the connection in MetadataDefaultSchema DbSqlSession hasn’t been initialized. As a results,the catalog and schema not exist. Finally, all database tables are queried. Can you understand me? I am not sure whether I express my confusions clearly or not.
Finally, I want to create a pr to camunda for the promble, can you give some advice?

Can you please elaborate a bit how your project and Camunda configuration looks like and what leads to that problem? Ideally, even with an example project on github? I think we should clarify that first before discussing a contribution makes sense.

Thank you for your answer,i didn’t configure anything in my project; it is a original project. just run in my first camunda database, and check out to second camunda database, then the application error.

Can you please elaborate on this part? I’m sorry, I do not understand what you want to say. Please try to be as detailed as you can.

:rofl:, I’m really sorry for you,@thorben

Hi @thorben
I guess the question might be about how to initialize an empty database with Camunda.

@chenjingyan
Did I get the question correct?

@chenjingyan
you might want to take a look here Install the Database Schema | docs.camunda.org and here JFrog

@Alex_Voloshyn
emm…,inaccurate,
i think it is a bug,when camunda.bpm.database.schema-update : true and alreadly existed a camunda
database,
i can not initialize another empty camunda database;