FlowableException: Could not update Flowable database schema: unknown version from database: '6.5.0.6'

Need help to solve this issue which is coming after upgrading flowable dependency version from 6.4.1 to 6.5.0. Please find below the stacktrace for the same:

2020-08-06 09:00:24.696 INFO 6 — [ main] o.f.c.e.impl.db.CommonDbSchemaManager : upgrading flowable common schema from 6.5.0.1 to 6.5.0.6
2020-08-06 09:00:24.696 INFO 6 — [ main] o.f.c.e.impl.db.CommonDbSchemaManager : Upgrade needed: 6501 -> 6502. Looking for schema update resource for component ‘common’
2020-08-06 09:00:24.699 INFO 6 — [ main] o.f.c.e.impl.db.CommonDbSchemaManager : performing upgrade on common with resource org/flowable/common/db/upgrade/flowable.all.upgradestep.6501.to.6502.common.sql
‘flowableAppEngine’: FactoryBean threw exception on object creation; nested exception is org.flowable.common.engine.api.FlowableException: Could not update Flowable database schema: unknown version from database: '6.5.0.6’

On the dependency side we add the major version as 6.5.0 in build.gradle file, could any one please help to know from where this minor version (6.5.0.6 or 6.5.0.1) is getting picked up.

Below are the dependencies used:

implementation ‘org.mariadb.jdbc:mariadb-java-client:2.6.0’
implementation ‘org.flowable:flowable-spring-boot-starter:6.5.0’
implementation ‘org.flowable:flowable-spring-boot-starter-rest:6.5.0’

Thanks in advance !