From f359551f0ad18330e7765c40cb120e37c2aba624 Mon Sep 17 00:00:00 2001 From: soularac Date: Wed, 21 Apr 2021 20:37:17 -0300 Subject: [PATCH 1/3] remove mySql from build --- build.gradle | 1 - 1 file changed, 1 deletion(-) diff --git a/build.gradle b/build.gradle index 9ba38df..e88b2b5 100644 --- a/build.gradle +++ b/build.gradle @@ -27,7 +27,6 @@ dependencies { implementation 'org.springframework.session:spring-session-core' compileOnly 'org.projectlombok:lombok' runtimeOnly 'com.h2database:h2' - runtimeOnly 'mysql:mysql-connector-java' annotationProcessor 'org.projectlombok:lombok' testImplementation 'org.springframework.boot:spring-boot-starter-test' implementation 'org.springdoc:springdoc-openapi-ui:1.5.6' From 29d3fbcd542c2356ea3ecf12aebd4a52e6e0c050 Mon Sep 17 00:00:00 2001 From: soularac Date: Wed, 21 Apr 2021 20:43:51 -0300 Subject: [PATCH 2/3] change dweller_token relation --- src/main/java/ferramong/auth/entities/Dweller.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ferramong/auth/entities/Dweller.java b/src/main/java/ferramong/auth/entities/Dweller.java index 8c47406..c0e39e9 100644 --- a/src/main/java/ferramong/auth/entities/Dweller.java +++ b/src/main/java/ferramong/auth/entities/Dweller.java @@ -38,6 +38,6 @@ public class Dweller implements Serializable { private String secretAnswer; @OneToOne(cascade = CascadeType.ALL) - @JoinColumn(name = "dweller_id") + @JoinColumn(name = "token_id", referencedColumnName = "id") private Token token; } From 66c914cb751f3834b8687a92b51a709e3af27c61 Mon Sep 17 00:00:00 2001 From: William Niemiec Date: Wed, 21 Apr 2021 20:48:15 -0300 Subject: [PATCH 3/3] Postgrees --- build.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/build.gradle b/build.gradle index e88b2b5..9353b25 100644 --- a/build.gradle +++ b/build.gradle @@ -27,6 +27,7 @@ dependencies { implementation 'org.springframework.session:spring-session-core' compileOnly 'org.projectlombok:lombok' runtimeOnly 'com.h2database:h2' + runtimeOnly 'org.postgresql:postgresql' annotationProcessor 'org.projectlombok:lombok' testImplementation 'org.springframework.boot:spring-boot-starter-test' implementation 'org.springdoc:springdoc-openapi-ui:1.5.6'