Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <build>
- <plugins>
- <!-- Flyway -->
- <plugin>
- <groupId>org.flywaydb</groupId>
- <artifactId>flyway-maven-plugin</artifactId>
- <version>5.1.4</version>
- <configuration>
- <url>${jdbc.url}</url>
- <schemas>
- <schema>public</schema>
- </schemas>
- </configuration>
- <executions>
- <execution>
- <id>migrate-database</id>
- <phase>pre-integration-test</phase>
- <goals>
- <goal>clean</goal>
- <goal>migrate</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- mvn -Djdbc.url=jdbc:postgresql://localhost:5432/racer_test?user%3Dracer%26password%3Dfoo clean install
- [INFO] --- flyway-maven-plugin:5.1.4:clean (migrate-database) @ racer-api ---
- [INFO] Flyway Community Edition 5.1.4 by Boxfuse
- [INFO] Database: jdbc:postgresql://localhost:5432/racer_test (PostgreSQL 9.6)
- [INFO] Successfully cleaned schema "public" (execution time 00:00.026s)
- [INFO]
- [INFO] --- flyway-maven-plugin:5.1.4:migrate (migrate-database) @ racer-api ---
- [INFO] Database: jdbc:postgresql://localhost:5432/racer_test (PostgreSQL 9.6)
- [INFO] Successfully validated 1 migration (execution time 00:00.005s)
- [INFO] Creating Schema History table: "public"."flyway_schema_history"
- [INFO] Current version of schema "public": << Empty Schema >>
- [INFO] Migrating schema "public" to version 1 - create users
- [INFO] Successfully applied 1 migration to schema "public" (execution time 00:00.040s)
- racer_test=> d
- List of relations
- Schema | Name | Type | Owner
- --------+-----------------------+----------+--------
- public | flyway_schema_history | table | jeeves
- public | users | table | jeeves
- public | users_id_seq | sequence | jeeves
- (3 rows)
Add Comment
Please, Sign In to add comment