-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/p2022 1324 #18
base: develop
Are you sure you want to change the base?
Conversation
� Conflicts: � pom.xml � src/main/java/com/intive/patronage22eganortap/Patronage22EganortapApplication.java
04c6f7e
to
02a4543
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes needed
src/main/java/com/intive/patronage22eganortap/Patronage22EganortapApplication.java
Outdated
Show resolved
Hide resolved
spring.datasource.url=jdbc:postgresql://localhost:5432/patronageDb | ||
spring.datasource.username=veryImportantUser | ||
spring.datasource.password=superStrongPassword; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Development values, not for prod
02a4543
to
02cd3ae
Compare
|
||
#Flyway - postgres config | ||
spring.flyway.enabled=true | ||
spring.flyway.url=jdbc:postgresql://localhost:5432/patronageDb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed
To start migration with FlyWay add scripts(SQL queries) into resources/db/migration
naming convention for the scripts:
V_[date]_[time]__[brief_description].sql i.e.V_20220305_1151__short_description.sql
To use H2 start application normally.
To use postgres type in the terminal:
mvn spring-boot:run -Dspring-boot.run.profiles=prod
To check the results for H2
-Start the application
-In the web browser add http://localhost:8080/h2-console
-In the field JDBC URL paste datasource url from properties i.e jdbc:h2:mem:testdb