This time I explained adding flyway etc. in maven project
Add Flyway dependency to pom.xml
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
</dependency>
in pom.xml
Add plugins in project> build> plugins
<plugin>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-maven-plugin</artifactId>
<configuration>
<user>user<user>
<password>password</password>
<url>jdbc:mysql://localhost:3306/databaseName?serverTimezone=UTC</url>
<schemas>
<schema>schemaName</schema>
</schemas>
</configuration>
</plugin>
Click "powershell ..." with "shift + MR" (shift + right-click) in the root folder of the project.
Run the following code after opening PowerShell
./mvnw clean flyway:migrate