H2 database migration to postgress

I have installed Keycloak 18.0.1, and I want to migrate the H2 database to cloud PostgreSQL. I used the following commands

./kc.sh start-dev --spi-connections-jpa-quarkus-migration-strategy=manual
./kc.sh start-dev --spi-connections-jpa-legacy-migration-strategy=manual

However, the data did not migrate successfully