@@ -35,14 +35,18 @@ public class FlywayMigrator {
3535 @ ConfigProperty (name = "miot.component.integrations.enabled" , defaultValue = "false" )
3636 boolean integrationsEnabled ;
3737
38+ @ ConfigProperty (name = "miot.component.conversational.enabled" , defaultValue = "false" )
39+ boolean conversationalEnabled ;
40+
3841 @ ConfigProperty (name = "quarkus.datasource.active" , defaultValue = "true" )
3942 boolean dataSourceActive ;
4043
4144 void onStart (@ Observes StartupEvent ev ) {
4245 // Gateway and other stateless components have no DB schema.
4346 // Skip migration entirely when no DB-dependent component is active
4447 // to avoid connecting to (or validating against) a database that isn't needed.
45- if (!fleetEnabled && !driverEnabled && !trackingEnabled && !integrationsEnabled ) {
48+ if (!fleetEnabled && !driverEnabled && !trackingEnabled && !integrationsEnabled
49+ && !conversationalEnabled ) {
4650 LOG .debug ("No DB-dependent components enabled — skipping Flyway" );
4751 return ;
4852 }
@@ -71,6 +75,9 @@ void onStart(@Observes StartupEvent ev) {
7175 if (integrationsEnabled ) {
7276 locations .add ("db/migration/integrations" );
7377 }
78+ if (conversationalEnabled ) {
79+ locations .add ("db/migration/conversational" );
80+ }
7481
7582 LOG .infof ("Flyway locations: %s" , locations );
7683
0 commit comments