I started with v5.18.0 and wanted to upgrade to v5.20.0.
I executed following scripts from activiti-5.20.0/database/upgrade: activiti.postgres.upgradestep.51800.to.51801.engine.sql activiti.postgres.upgradestep.51801.to.52000.engine.sql activiti.postgres.upgradestep.52000.to.52001.engine.sql activiti.postgres.upgradestep.52001.to.52002.engine.sql
I wanted to see if there was any difference if I performed upgrade from 5.18.0 to 5.20.0 vs. using create scripts from 5.20.0 (activiti-5.20.0/database/create/activiti.postgres.create.engine.sql, activiti.postgres.create.history.sql, activiti.postgres.create.identity.sql)
The only difference that I can see in the pg_dump is data related (full export of schema and data) is the following:
From an Activiti Engine perspective there's no difference between executing the scripts manually or letting the Engine execute them. The value that matters is the schema.version property. The history has no value for the Engine.