✅ [FlywayTenantMigration] Flyway repair completed successfully
2025-10-21T13:58:17.451+01:00  INFO 23392 --- [saas-multitenant-api] [           main] c.s.s.c.FlywayTenantMigrationService     : 🔍 [FlywayTenantMigration] Executing Flyway.migrate()...
2025-10-21T13:58:17.456+01:00  WARN 23392 --- [saas-multitenant-api] [           main] o.f.c.internal.database.base.Database    : Flyway upgrade recommended: MySQL 8.4 is newer than this version of Flyway and support has not been tested. The latest supported version of MySQL is 8.1.
2025-10-21T13:58:17.460+01:00  INFO 23392 --- [saas-multitenant-api] [           main] o.f.core.internal.command.DbValidate     : Successfully validated 2 migrations (execution time 00:00.003s)
2025-10-21T13:58:17.465+01:00  INFO 23392 --- [saas-multitenant-api] [           main] o.f.core.internal.command.DbMigrate      : Current version of schema `tenant_clinique_la_rive1_bleue1`: 1
2025-10-21T13:58:17.472+01:00  INFO 23392 --- [saas-multitenant-api] [           main] o.f.core.internal.command.DbMigrate      : Migrating schema `tenant_clinique_la_rive1_bleue1` to version "2 - add provider to inbound call data"
2025-10-21T13:58:17.495+01:00 ERROR 23392 --- [saas-multitenant-api] [           main] o.f.core.internal.command.DbMigrate      : Migration of schema `tenant_clinique_la_rive1_bleue1` to version "2 - add provider to inbound call data" failed! Please restore backups and roll back database and code!
2025-10-21T13:58:17.502+01:00 ERROR 23392 --- [saas-multitenant-api] [           main] c.s.s.c.FlywayTenantMigrationService     : ╔═══════════════════════════════════════════════════════╗
2025-10-21T13:58:17.502+01:00 ERROR 23392 --- [saas-multitenant-api] [           main] c.s.s.c.FlywayTenantMigrationService     : ║     FLYWAY MIGRATION FAILED                          ║
2025-10-21T13:58:17.502+01:00 ERROR 23392 --- [saas-multitenant-api] [           main] c.s.s.c.FlywayTenantMigrationService     : ╚═══════════════════════════════════════════════════════╝
2025-10-21T13:58:17.502+01:00 ERROR 23392 --- [saas-multitenant-api] [           main] c.s.s.c.FlywayTenantMigrationService     : ❌ [FlywayTenantMigration] Flyway migration FAILED for schema: tenant_clinique_la_rive1_bleue1
2025-10-21T13:58:17.502+01:00 ERROR 23392 --- [saas-multitenant-api] [           main] c.s.s.c.FlywayTenantMigrationService     : ❌ [FlywayTenantMigration] Exception type: org.flywaydb.core.internal.exception.FlywayMigrateException
2025-10-21T13:58:17.502+01:00 ERROR 23392 --- [saas-multitenant-api] [           main] c.s.s.c.FlywayTenantMigrationService     : ❌ [FlywayTenantMigration] Exception message: Script V2__add_provider_to_inbound_call_data.sql failed
-------------------------------------------------------
SQL State  : 42000
Error Code : 1064
Message    : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS idx_inbound_call_data_provider
ON inbound_call_data(provider)' at line 3
Location   : db/migration/tenant/V2__add_provider_to_inbound_call_data.sql (/Users/withanouar/Downloads/SaaSForge-5/target/classes/db/migration/tenant/V2__add_provider_to_inbound_call_data.sql)
Line       : 15
Statement  : Run Flyway with -X option to see the actual statement causing the problem

2025-10-21T13:58:17.502+01:00 ERROR 23392 --- [saas-multitenant-api] [           main] c.s.s.c.FlywayTenantMigrationService     : ❌ [FlywayTenantMigration] Stack trace:

org.flywaydb.core.internal.exception.FlywayMigrateException: Script V2__add_provider_to_inbound_call_data.sql failed
-------------------------------------------------------
SQL State  : 42000
Error Code : 1064
Message    : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS idx_inbound_call_data_provider
ON inbound_call_data(provider)' at line 3
Location   : db/migration/tenant/V2__add_provider_to_inbound_call_data.sql (/Users/withanouar/Downloads/SaaSForge-5/target/classes/db/migration/tenant/V2__add_provider_to_inbound_call_data.sql)
Line       : 15
Statement  : Run Flyway with -X option to see the actual statement causing the problem

	at org.flywaydb.core.internal.command.DbMigrate.doMigrateGroup(DbMigrate.java:399)
	at org.flywaydb.core.internal.command.DbMigrate.lambda$applyMigrations$1(DbMigrate.java:283)
	at org.flywaydb.core.internal.jdbc.TransactionalExecutionTemplate.execute(TransactionalExecutionTemplate.java:59)
	at org.flywaydb.core.internal.command.DbMigrate.applyMigrations(DbMigrate.java:282)
	at org.flywaydb.core.internal.command.DbMigrate.migrateGroup(DbMigrate.java:255)
	at org.flywaydb.core.internal.command.DbMigrate.lambda$migrateAll$0(DbMigrate.java:153)
	at org.flywaydb.database.mysql.MySQLNamedLockTemplate.execute(MySQLNamedLockTemplate.java:62)
	at org.flywaydb.database.mysql.MySQLConnection.lock(MySQLConnection.java:159)
	at org.flywaydb.core.internal.schemahistory.JdbcTableSchemaHistory.lock(JdbcTableSchemaHistory.java:164)
	at org.flywaydb.core.internal.command.DbMigrate.migrateAll(DbMigrate.java:153)
	at org.flywaydb.core.internal.command.DbMigrate.migrate(DbMigrate.java:104)
	at org.flywaydb.core.Flyway.lambda$migrate$1(Flyway.java:247)
	at org.flywaydb.core.FlywayExecutor.execute(FlywayExecutor.java:210)
	at org.flywaydb.core.Flyway.migrate(Flyway.java:188)
	at com.saas.shared.config.FlywayTenantMigrationService.migrateTenant(FlywayTenantMigrationService.java:104)
	at com.saas.shared.config.FlywayTenantMigrationService.migrateAllTenants(FlywayTenantMigrationService.java:47)
	at com.saas.shared.config.TenantMigrationRunner.run(TenantMigrationRunner.java:23)
	at org.springframework.boot.SpringApplication.lambda$callRunner$4(SpringApplication.java:784)
	at org.springframework.util.function.ThrowingConsumer$1.acceptWithException(ThrowingConsumer.java:82)
	at org.springframework.util.function.ThrowingConsumer.accept(ThrowingConsumer.java:60)
	at org.springframework.util.function.ThrowingConsumer$1.accept(ThrowingConsumer.java:86)
	at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:796)
	at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:784)
	at org.springframework.boot.SpringApplication.lambda$callRunners$3(SpringApplication.java:772)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:186)
	at java.base/java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:357)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:571)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:560)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:153)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:176)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:265)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:632)
	at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:772)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:325)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1361)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1350)
	at com.saas.SaasApplication.main(SaasApplication.java:13)
Caused by: org.flywaydb.core.internal.sqlscript.FlywaySqlScriptException: Script V2__add_provider_to_inbound_call_data.sql failed
-------------------------------------------------------
SQL State  : 42000
Error Code : 1064
Message    : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS idx_inbound_call_data_provider
ON inbound_call_data(provider)' at line 3
Location   : db/migration/tenant/V2__add_provider_to_inbound_call_data.sql (/Users/withanouar/Downloads/SaaSForge-5/target/classes/db/migration/tenant/V2__add_provider_to_inbound_call_data.sql)
Line       : 15
Statement  : Run Flyway with -X option to see the actual statement causing the problem

	at org.flywaydb.core.internal.sqlscript.DefaultSqlScriptExecutor.handleException(DefaultSqlScriptExecutor.java:256)
	at org.flywaydb.core.internal.sqlscript.DefaultSqlScriptExecutor.executeStatement(DefaultSqlScriptExecutor.java:217)
	at org.flywaydb.core.internal.sqlscript.DefaultSqlScriptExecutor.execute(DefaultSqlScriptExecutor.java:137)
	at org.flywaydb.core.internal.resolver.sql.SqlMigrationExecutor.executeOnce(SqlMigrationExecutor.java:75)
	at org.flywaydb.core.internal.resolver.sql.SqlMigrationExecutor.lambda$execute$0(SqlMigrationExecutor.java:66)
	at org.flywaydb.core.internal.database.DefaultExecutionStrategy.execute(DefaultExecutionStrategy.java:31)
	at org.flywaydb.core.internal.resolver.sql.SqlMigrationExecutor.execute(SqlMigrationExecutor.java:65)
	at org.flywaydb.core.internal.command.DbMigrate.doMigrateGroup(DbMigrate.java:391)
	... 36 common frames omitted
Caused by: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS idx_inbound_call_data_provider
ON inbound_call_data(provider)' at line 3
	at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:112)
	at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:114)
	at com.mysql.cj.jdbc.StatementImpl.executeInternal(StatementImpl.java:837)
	at com.mysql.cj.jdbc.StatementImpl.execute(StatementImpl.java:685)
	at com.zaxxer.hikari.pool.ProxyStatement.execute(ProxyStatement.java:95)
	at com.zaxxer.hikari.pool.HikariProxyStatement.execute(HikariProxyStatement.java)
	at org.flywaydb.core.internal.jdbc.JdbcTemplate.executeStatement(JdbcTemplate.java:215)
	at org.flywaydb.core.internal.sqlscript.ParsedSqlStatement.execute(ParsedSqlStatement.java:88)
	at org.flywaydb.core.internal.sqlscript.DefaultSqlScriptExecutor.executeStatement(DefaultSqlScriptExecutor.java:212)
	... 42 common frames omitted

2025-10-21T13:58:17.502+01:00 ERROR 23392 --- [saas-multitenant-api] [           main] c.s.s.c.FlywayTenantMigrationService     : ❌ [FlywayTenantMigration] FAILED to migrate schema: tenant_clinique_la_rive1_bleue1

java.lang.RuntimeException: Failed to migrate tenant schema: tenant_clinique_la_rive1_bleue1
	at com.saas.shared.config.FlywayTenantMigrationService.migrateTenant(FlywayTenantMigrationService.java:122)
	at com.saas.shared.config.FlywayTenantMigrationService.migrateAllTenants(FlywayTenantMigrationService.java:47)
	at com.saas.shared.config.TenantMigrationRunner.run(TenantMigrationRunner.java:23)
	at org.springframework.boot.SpringApplication.lambda$callRunner$4(SpringApplication.java:784)
	at org.springframework.util.function.ThrowingConsumer$1.acceptWithException(ThrowingConsumer.java:82)
	at org.springframework.util.function.ThrowingConsumer.accept(ThrowingConsumer.java:60)
	at org.springframework.util.function.ThrowingConsumer$1.accept(ThrowingConsumer.java:86)
	at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:796)
	at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:784)
	at org.springframework.boot.SpringApplication.lambda$callRunners$3(SpringApplication.java:772)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:186)
	at java.base/java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:357)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:571)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:560)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:153)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:176)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:265)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:632)
	at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:772)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:325)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1361)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1350)
	at com.saas.SaasApplication.main(SaasApplication.java:13)
Caused by: org.flywaydb.core.internal.exception.FlywayMigrateException: Script V2__add_provider_to_inbound_call_data.sql failed
-------------------------------------------------------
SQL State  : 42000
Error Code : 1064
Message    : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS idx_inbound_call_data_provider
ON inbound_call_data(provider)' at line 3
Location   : db/migration/tenant/V2__add_provider_to_inbound_call_data.sql (/Users/withanouar/Downloads/SaaSForge-5/target/classes/db/migration/tenant/V2__add_provider_to_inbound_call_data.sql)
Line       : 15
Statement  : Run Flyway with -X option to see the actual statement causing the problem

	at org.flywaydb.core.internal.command.DbMigrate.doMigrateGroup(DbMigrate.java:399)
	at org.flywaydb.core.internal.command.DbMigrate.lambda$applyMigrations$1(DbMigrate.java:283)
	at org.flywaydb.core.internal.jdbc.TransactionalExecutionTemplate.execute(TransactionalExecutionTemplate.java:59)
	at org.flywaydb.core.internal.command.DbMigrate.applyMigrations(DbMigrate.java:282)
	at org.flywaydb.core.internal.command.DbMigrate.migrateGroup(DbMigrate.java:255)
	at org.flywaydb.core.internal.command.DbMigrate.lambda$migrateAll$0(DbMigrate.java:153)
	at org.flywaydb.database.mysql.MySQLNamedLockTemplate.execute(MySQLNamedLockTemplate.java:62)
	at org.flywaydb.database.mysql.MySQLConnection.lock(MySQLConnection.java:159)
	at org.flywaydb.core.internal.schemahistory.JdbcTableSchemaHistory.lock(JdbcTableSchemaHistory.java:164)
	at org.flywaydb.core.internal.command.DbMigrate.migrateAll(DbMigrate.java:153)
	at org.flywaydb.core.internal.command.DbMigrate.migrate(DbMigrate.java:104)
	at org.flywaydb.core.Flyway.lambda$migrate$1(Flyway.java:247)
	at org.flywaydb.core.FlywayExecutor.execute(FlywayExecutor.java:210)
	at org.flywaydb.core.Flyway.migrate(Flyway.java:188)
	at com.saas.shared.config.FlywayTenantMigrationService.migrateTenant(FlywayTenantMigrationService.java:104)
	... 22 common frames omitted
Caused by: org.flywaydb.core.internal.sqlscript.FlywaySqlScriptException: Script V2__add_provider_to_inbound_call_data.sql failed
-------------------------------------------------------
SQL State  : 42000
Error Code : 1064
Message    : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS idx_inbound_call_data_provider
ON inbound_call_data(provider)' at line 3
Location   : db/migration/tenant/V2__add_provider_to_inbound_call_data.sql (/Users/withanouar/Downloads/SaaSForge-5/target/classes/db/migration/tenant/V2__add_provider_to_inbound_call_data.sql)
Line       : 15
Statement  : Run Flyway with -X option to see the actual statement causing the problem

	at org.flywaydb.core.internal.sqlscript.DefaultSqlScriptExecutor.handleException(DefaultSqlScriptExecutor.java:256)
	at org.flywaydb.core.internal.sqlscript.DefaultSqlScriptExecutor.executeStatement(DefaultSqlScriptExecutor.java:217)
	at org.flywaydb.core.internal.sqlscript.DefaultSqlScriptExecutor.execute(DefaultSqlScriptExecutor.java:137)
	at org.flywaydb.core.internal.resolver.sql.SqlMigrationExecutor.executeOnce(SqlMigrationExecutor.java:75)
	at org.flywaydb.core.internal.resolver.sql.SqlMigrationExecutor.lambda$execute$0(SqlMigrationExecutor.java:66)
	at org.flywaydb.core.internal.database.DefaultExecutionStrategy.execute(DefaultExecutionStrategy.java:31)
	at org.flywaydb.core.internal.resolver.sql.SqlMigrationExecutor.execute(SqlMigrationExecutor.java:65)
	at org.flywaydb.core.internal.command.DbMigrate.doMigrateGroup(DbMigrate.java:391)
	... 36 common frames omitted
Caused by: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS idx_inbound_call_data_provider
ON inbound_call_data(provider)' at line 3
	at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:112)
	at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:114)
	at com.mysql.cj.jdbc.StatementImpl.executeInternal(StatementImpl.java:837)
	at com.mysql.cj.jdbc.StatementImpl.execute(StatementImpl.java:685)
	at com.zaxxer.hikari.pool.ProxyStatement.execute(ProxyStatement.java:95)
	at com.zaxxer.hikari.pool.HikariProxyStatement.execute(HikariProxyStatement.java)
	at org.flywaydb.core.internal.jdbc.JdbcTemplate.executeStatement(JdbcTemplate.java:215)
	at org.flywaydb.core.internal.sqlscript.ParsedSqlStatement.execute(ParsedSqlStatement.java:88)
	at org.flywaydb.core.internal.sqlscript.DefaultSqlScriptExecutor.executeStatement(DefaultSqlScriptExecutor.java:212)
	... 42 common frames omitted

2025-10-21T13:58:17.502+01:00 ERROR 23392 --- [saas-multitenant-api] [           main] c.s.s.c.FlywayTenantMigrationService     : ❌ [FlywayTenantMigration] Exception type: java.lang.RuntimeException
2025-10-21T13:58:17.502+01:00 ERROR 23392 --- [saas-multitenant-api] [           main] c.s.s.c.FlywayTenantMigrationService     : ❌ [FlywayTenantMigration] Exception message: Failed to migrate tenant schema: tenant_clinique_la_rive1_bleue1
2025-10-21T13:58:17.502+01:00  INFO 23392 --- [saas-multitenant-api] [           main] c.s.s.c.FlywayTenantMigrationService     : ╔═══════════════════════════════════════════════════════╗
2025-10-21T13:58:17.503+01:00  INFO 23392 --- [saas-multitenant-api] [           main] c.s.s.c.FlywayTenantMigrationService     : ║     FLYWAY MIGRATION COMPLETE                        ║
2025-10-21T13:58:17.503+01:00  INFO 23392 --- [saas-multitenant-api] [           main] c.s.s.c.FlywayTenantMigrationService     : ╚═══════════════════════════════════════════════════════╝
2025-10-21T13:58:17.503+01:00  INFO 23392 --- [saas-multitenant-api] [           main] c.s.s.c.FlywayTenantMigrationService     : 🏁 [FlywayTenantMigration] Success: 0 / 1
2025-10-21T13:58:17.503+01:00  INFO 23392 --- [saas-multitenant-api] [           main] c.s.s.c.FlywayTenantMigrationService     : 🏁 [FlywayTenantMigration] Failures: 1
2025-10-21T13:58:17.503+01:00 ERROR 23392 --- [saas-multitenant-api] [           main] c.s.shared.config.TenantMigrationRunner  : ❌ [TenantMigrationRunner] CRITICAL: Failed to run tenant migrations on startup

java.lang.RuntimeException: Tenant migration failed for 1 schemas (out of 1 total)
	at com.saas.shared.config.FlywayTenantMigrationService.migrateAllTenants(FlywayTenantMigrationService.java:67)
	at com.saas.shared.config.TenantMigrationRunner.run(TenantMigrationRunner.java:23)
	at org.springframework.boot.SpringApplication.lambda$callRunner$4(SpringApplication.java:784)
	at org.springframework.util.function.ThrowingConsumer$1.acceptWithException(ThrowingConsumer.java:82)
	at org.springframework.util.function.ThrowingConsumer.accept(ThrowingConsumer.java:60)
	at org.springframework.util.function.ThrowingConsumer$1.accept(ThrowingConsumer.java:86)
	at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:796)
	at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:784)
	at org.springframework.boot.SpringApplication.lambda$callRunners$3(SpringApplication.java:772)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:186)
	at java.base/java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:357)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:571)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:560)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:153)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:176)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:265)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:632)
	at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:772)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:325)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1361)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1350)
	at com.saas.SaasApplication.main(SaasApplication.java:13)

2025-10-21T13:58:17.503+01:00 ERROR 23392 --- [saas-multitenant-api] [           main] c.s.shared.config.TenantMigrationRunner  : ❌ [TenantMigrationRunner] Application may not function correctly until migrations are applied!
2025-10-21T13:58:17.504+01:00  INFO 23392 --- [saas-multitenant-api] [           main] .s.b.a.l.ConditionEvaluationReportLogger : 

Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2025-10-21T13:58:17.509+01:00 ERROR 23392 --- [saas-multitenant-api] [           main] o.s.boot.SpringApplication               : Application run failed

java.lang.RuntimeException: Failed to apply tenant migrations on startup
	at com.saas.shared.config.TenantMigrationRunner.run(TenantMigrationRunner.java:28)
	at org.springframework.boot.SpringApplication.lambda$callRunner$4(SpringApplication.java:784)
	at org.springframework.util.function.ThrowingConsumer$1.acceptWithException(ThrowingConsumer.java:82)
	at org.springframework.util.function.ThrowingConsumer.accept(ThrowingConsumer.java:60)
	at org.springframework.util.function.ThrowingConsumer$1.accept(ThrowingConsumer.java:86)
	at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:796)
	at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:784)
	at org.springframework.boot.SpringApplication.lambda$callRunners$3(SpringApplication.java:772)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:186)
	at java.base/java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:357)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:571)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:560)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:153)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:176)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:265)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:632)
	at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:772)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:325)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1361)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1350)
	at com.saas.SaasApplication.main(SaasApplication.java:13)
Caused by: java.lang.RuntimeException: Tenant migration failed for 1 schemas (out of 1 total)
	at com.saas.shared.config.FlywayTenantMigrationService.migrateAllTenants(FlywayTenantMigrationService.java:67)
	at com.saas.shared.config.TenantMigrationRunner.run(TenantMigrationRunner.java:23)
	... 20 common frames omitted
