Skip to content
This repository was archived by the owner on May 21, 2026. It is now read-only.

Commit 4c2a594

Browse files
fix: replace TINYINT(1) with BOOLEAN in UserMediaListModel and improve H2 test URL
Agent-Logs-Url: https://github.com/EspacoGeek-Teams/SpringAPI_EspacoGeek/sessions/e7e571ff-2988-46be-9e3b-f3ab3193f641 Co-authored-by: vitorhugo-java <65777252+vitorhugo-java@users.noreply.github.com>
1 parent d628646 commit 4c2a594

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/com/espacogeek/geek/models/UserMediaListModel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public class UserMediaListModel implements Serializable {
7979
@Column(name = "rewatch_count", columnDefinition = "INT DEFAULT 0")
8080
private Integer rewatchCount;
8181

82-
@Column(name = "is_private", columnDefinition = "TINYINT(1) DEFAULT 0")
82+
@Column(name = "is_private", columnDefinition = "BOOLEAN DEFAULT FALSE")
8383
private Boolean isPrivate;
8484

8585
@Column(name = "personal_notes", length = 2000)

src/test/resources/application-test.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Test configuration
2-
spring.datasource.url=jdbc:h2:mem:testdb
2+
spring.datasource.url=jdbc:h2:mem:testdb;MODE=MySQL;DATABASE_TO_UPPER=false;DB_CLOSE_DELAY=-1
33
spring.datasource.driver-class-name=org.h2.Driver
44
spring.datasource.username=sa
55
spring.datasource.password=

0 commit comments

Comments
 (0)