Skip to content
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

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open

Feature/p2022 1324 #18

wants to merge 5 commits into from

Conversation

Pawel-Koz
Copy link

@Pawel-Koz Pawel-Koz commented Mar 5, 2022

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

@Pawel-Koz Pawel-Koz force-pushed the feature/P2022-1324 branch from 04c6f7e to 02a4543 Compare March 8, 2022 09:03
Copy link

@doomedcat17 doomedcat17 left a 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/resources/application.properties Show resolved Hide resolved
src/main/resources/application.properties Show resolved Hide resolved
Comment on lines +2 to +5
spring.datasource.url=jdbc:postgresql://localhost:5432/patronageDb
spring.datasource.username=veryImportantUser
spring.datasource.password=superStrongPassword;

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

src/main/resources/application.properties Outdated Show resolved Hide resolved
src/main/resources/application.properties Show resolved Hide resolved
@Pawel-Koz Pawel-Koz force-pushed the feature/P2022-1324 branch from 02a4543 to 02cd3ae Compare March 10, 2022 10:56
@Pawel-Koz Pawel-Koz requested a review from doomedcat17 March 10, 2022 12:24

#Flyway - postgres config
spring.flyway.enabled=true
spring.flyway.url=jdbc:postgresql://localhost:5432/patronageDb

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants