1
resposta

[Dúvida] Não esta mostrando erro, mas não insere a tabela V1

--- [  restartedMain] med.voll.api.ApiApplication              : Starting ApiApplication using Java 20.0.1 with PID 16144 (C:\api\target\classes started by Adriano in C:\api)
 [  restartedMain] med.voll.api.ApiApplication              : No active profile set, falling back to 1 default profile: "default"
- [  restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
-- [  restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
--- [  restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
- [  restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 58 ms. Found 1 JPA repository interfaces.
--- [  restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)
 [  restartedMain] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
-- [  restartedMain] o.apache.catalina.core.StandardEngine    : Starting Servlet engine: [Apache Tomcat/10.1.8]
 --- [  restartedMain] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2023-04-27T15:17:04.977-03:00  INFO 16144 --- [  restartedMain] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1732 ms
2023-04-27T15:17:05.248-03:00  INFO 16144 --- [  restartedMain] o.f.c.internal.license.VersionPrinter    : Flyway Community Edition 9.5.1 by Redgate
2023-04-27T15:17:05.248-03:00  INFO 16144 --- [  restartedMain] o.f.c.internal.license.VersionPrinter    : See what's new here: https://flywaydb.org/documentation/learnmore/releaseNotes#9.5.1
[  restartedMain] o.f.c.internal.license.VersionPrinter    : 
--- [  restartedMain] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...
--- [  restartedMain] com.zaxxer.hikari.pool.HikariPool        : HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@4e89038f
2023-04-27T15:17:05.726-03:00  INFO 16144 --- [  restartedMain] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.
2023-04-27T15:17:05.758-03:00  INFO 16144 --- [  restartedMain] o.f.c.i.database.base.BaseDatabaseType   : Database: jdbc:mysql://localhost/vollmed_api (MySQL 8.0)
2023-04-27T15:17:05.810-03:00  INFO 16144 --- [  restartedMain] o.f.core.internal.command.DbValidate     : Successfully validated 0 migrations (execution time 00:00.012s)
2023-04-27T15:17:05.811-03:00  WARN 16144 --- [  restartedMain] o.f.core.internal.command.DbValidate     : No migrations found. Are your locations set up correctly?
2023-04-27T15:17:05.823-03:00  INFO 16144 --- [  restartedMain] o.f.core.internal.command.DbMigrate      : Current version of schema `vollmed_api`: << Empty Schema >>
2023-04-27T15:17:05.825-03:00  INFO 16144 --- [  restartedMain] o.f.core.internal.command.DbMigrate      : Schema `vollmed_api` is up to date. No migration necessary.
2023-04-27T15:17:05.935-03:00  INFO 16144 --- [  restartedMain] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [name: default]
2023-04-27T15:17:06.022-03:00  INFO 16144 --- [  restartedMain] org.hibernate.Version                    : HHH000412: Hibernate ORM core version 6.1.7.Final
2023-04-27T15:17:06.432-03:00  INFO 16144 --- [  restartedMain] SQL dialect                              : HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
2023-04-27T15:17:07.132-03:00  INFO 16144 --- [  restartedMain] o.h.e.t.j.p.i.JtaPlatformInitiator       : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
2023-04-27T15:17:07.140-03:00  INFO 16144 --- [  restartedMain] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2023-04-27T15:17:07.424-03:00  WARN 16144 --- [  restartedMain] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
2023-04-27T15:17:07.739-03:00  INFO 16144 --- [  restartedMain] o.s.b.d.a.OptionalLiveReloadServer       : LiveReload server is running on port 35729
2023-04-27T15:17:07.771-03:00  INFO 16144 --- [  restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8080 (http) with context path ''
2023-04-27T15:17:07.779-03:00  INFO 16144 --- [  restartedMain] med.voll.api.ApiApplication              : Started ApiApplication in 5.178 seconds (process running for 5.658)
1 resposta

Oi Adriano!

No log diz que não achou migations:

Current version of schema vollmed_api: << Empty Schema >> 
Schema vollmed_api is up to date. No migration necessary.

Você deve ter criado a migration com o nome errado ou no diretório incorreto.