alibaba / alibaba/intelligent-test-platform

使用flyway管理数据库版本

Open
#21 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
465
Forks
162
PR merge metrics
No merged PRs in 30d

Description

错误信息:
Invocation of init method failed; nested exception is org.flywaydb.core.api.FlywayException: Found non-empty schema(s) `markov_demo` but no schema history table. Use baseline() or set baselineOnMigrate to true to initialize the schema history table.

修改意见:

application.properties
```
spring.flyway.default-schema=markov_demo
spring.flyway.locations=classpath:db/migration
```
修改为
```
spring.flyway.default-schema=markov_demo
spring.flyway.locations=classpath:db/migration
spring.flyway.baseline-on-migrate=true
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Open application.properties and inspect the Spring Flyway settings, starting with the reported startup error about the non-empty markov_demo schema and missing schema history table. Confirm that enabling baseline-on-migrate allows startup and initializes the migration history for the existing schema.

Written by the indexing model from the issue text.

Assessment

Tech stack
spring
Domain
databases
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.