Guest User

Untitled

a guest
Aug 24th, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. <build>
  2. <plugins>
  3.  
  4. <!-- Flyway -->
  5. <plugin>
  6. <groupId>org.flywaydb</groupId>
  7. <artifactId>flyway-maven-plugin</artifactId>
  8. <version>5.1.4</version>
  9.  
  10. <configuration>
  11. <url>${jdbc.url}</url>
  12. <schemas>
  13. <schema>public</schema>
  14. </schemas>
  15. </configuration>
  16. <executions>
  17. <execution>
  18. <id>migrate-database</id>
  19. <phase>pre-integration-test</phase>
  20. <goals>
  21. <goal>clean</goal>
  22. <goal>migrate</goal>
  23. </goals>
  24. </execution>
  25. </executions>
  26. </plugin>
  27.  
  28. </plugins>
  29. </build>
  30.  
  31. mvn -Djdbc.url=jdbc:postgresql://localhost:5432/racer_test?user%3Dracer%26password%3Dfoo clean install
  32.  
  33. [INFO] --- flyway-maven-plugin:5.1.4:clean (migrate-database) @ racer-api ---
  34. [INFO] Flyway Community Edition 5.1.4 by Boxfuse
  35. [INFO] Database: jdbc:postgresql://localhost:5432/racer_test (PostgreSQL 9.6)
  36. [INFO] Successfully cleaned schema "public" (execution time 00:00.026s)
  37. [INFO]
  38. [INFO] --- flyway-maven-plugin:5.1.4:migrate (migrate-database) @ racer-api ---
  39. [INFO] Database: jdbc:postgresql://localhost:5432/racer_test (PostgreSQL 9.6)
  40. [INFO] Successfully validated 1 migration (execution time 00:00.005s)
  41. [INFO] Creating Schema History table: "public"."flyway_schema_history"
  42. [INFO] Current version of schema "public": << Empty Schema >>
  43. [INFO] Migrating schema "public" to version 1 - create users
  44. [INFO] Successfully applied 1 migration to schema "public" (execution time 00:00.040s)
  45.  
  46. racer_test=> d
  47. List of relations
  48. Schema | Name | Type | Owner
  49. --------+-----------------------+----------+--------
  50. public | flyway_schema_history | table | jeeves
  51. public | users | table | jeeves
  52. public | users_id_seq | sequence | jeeves
  53. (3 rows)
Add Comment
Please, Sign In to add comment