Both answers above are correct - just wanted to add that if you are looking for fast and easy path and you are using maven then Flyway is probably the most convenient way to operate.
All you need to have is Flyway Maven plugin, two pom dependencies and migration sql scripts.
Eg. assuming spring - r2dbc - postgresql you can have migration infrastructure ready in just three simple steps:
(1) Add migration script to resources:
resources/db/migration/V1_init.sql
(2) add two dependencies to pom
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
</dependency>
(3) and one plugin definition in build section:
<plugin>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-maven-plugin</artifactId>
<version>6.0.0-beta2</version>
</plugin>
and now you have single maven CLI command to migrate:
mvn flyway:migrate -Dflyway.url=jdbc:postgresql://localhost:5432/test -Dflyway.user=test -Dflyway.password=test
See more Flyway maven plugin docs here