-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: dev profile, to enable offline work on the project
Task: 86977q49u
- Loading branch information
Showing
6 changed files
with
48 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
spring.datasource.url=jdbc:h2:file:./data/devdb;DB_CLOSE_DELAY=-1;AUTO_SERVER=TRUE | ||
spring.datasource.driver-class-name=org.h2.Driver | ||
|
||
spring.datasource.username=sa | ||
spring.datasource.password= | ||
spring.jpa.hibernate.ddl-auto=update | ||
spring.h2.console.enabled=true | ||
spring.h2.console.path=/h2-console | ||
|
||
|
||
spring.sql.init.mode=always | ||
spring.sql.init.schema-locations=classpath:data/create_schemas_h2.sql | ||
|
||
spring.app.jwtSecret=mySecretKey134567854345671693872934523452436235234523451412432342341534524352346 | ||
spring.app.jwtExpirationMs=17280000 | ||
|
||
logging.level.org.hibernate.SQL=DEBUG | ||
logging.level.org.springframework.jdbc=DEBUG | ||
logging.level.org.springframework.orm.jpa=DEBUG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
CREATE SCHEMA IF NOT EXISTS MH_USERS; | ||
CREATE SCHEMA IF NOT EXISTS MH_CHATS; | ||
CREATE SCHEMA IF NOT EXISTS MH_MATCHING; | ||
CREATE SCHEMA IF NOT EXISTS MH_POSTS; | ||
CREATE SCHEMA IF NOT EXISTS MH_PROFILES; | ||
CREATE SCHEMA IF NOT EXISTS MH_GROUPS; | ||
CREATE SCHEMA IF NOT EXISTS MH_USER_RELATIONS; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,7 +93,6 @@ private void initUser() { | |
user1.setEmail("[email protected]"); | ||
user1.setName("Jan"); | ||
user1.setSurname("Kos"); | ||
user1.setSalt("salt"); | ||
user1.setAccountNonLocked(false); | ||
user1.setBirthdate(LocalDate.of(1990, 1, 1)); | ||
user1.setCredentialsNonExpired(true); | ||
|
@@ -111,7 +110,6 @@ private void initUser() { | |
user2.setEmail("[email protected]"); | ||
user2.setName("Gustaw"); | ||
user2.setSurname("Jeleń"); | ||
user2.setSalt("salt"); | ||
user2.setAccountNonLocked(false); | ||
user2.setBirthdate(LocalDate.of(1991, 11, 11)); | ||
user2.setCredentialsNonExpired(true); | ||
|
@@ -129,7 +127,6 @@ private void initUser() { | |
user3.setEmail("[email protected]"); | ||
user3.setName("Grzegorz"); | ||
user3.setSurname("Saakaszwili"); | ||
user3.setSalt("salt"); | ||
user3.setAccountNonLocked(false); | ||
user3.setBirthdate(LocalDate.of(1991, 11, 11)); | ||
user3.setCredentialsNonExpired(true); | ||
|