Skip to content

Commit

Permalink
Api: ๐Ÿ› Spending Custom Category Delete Query Fix (#142)
Browse files Browse the repository at this point in the history
* fix: spending_custom_category sql_delete ์ฟผ๋ฆฌ ์ˆ˜์ •

* test: ํ…Œ์ŠคํŠธ db jdbc url ์ˆ˜์ •

* test: ๋„๋ฉ”์ธ ๋ชจ๋“ˆ db ์ปจํ…Œ์ด๋„ˆ๋Š” utc๋กœ ๋งž์ถค
  • Loading branch information
psychology50 authored Jul 31, 2024
1 parent 9175dfa commit 2f0a100
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static void setRedisProperties(DynamicPropertyRegistry registry) {
registry.add("spring.data.redis.host", REDIS_CONTAINER::getHost);
registry.add("spring.data.redis.port", () -> String.valueOf(REDIS_CONTAINER.getMappedPort(6379)));
registry.add("spring.data.redis.password", () -> "testpass");
registry.add("spring.datasource.url", () -> String.format("jdbc:mysql://%s:%s/pennyway?serverTimezone=UTC&characterEncoding=utf8", MYSQL_CONTAINER.getHost(), MYSQL_CONTAINER.getMappedPort(3306)));
registry.add("spring.datasource.url", () -> String.format("jdbc:mysql://%s:%s/pennyway?serverTimezone=Asia/Seoul&characterEncoding=utf8&postfileSQL=true&logger=Slf4JLogger&rewriteBatchedStatements=true", MYSQL_CONTAINER.getHost(), MYSQL_CONTAINER.getMappedPort(3306)));
registry.add("spring.datasource.username", () -> "root");
registry.add("spring.datasource.password", () -> "testpass");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
@Table(name = "spending_custom_category")
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@SQLRestriction("deleted_at IS NULL")
@SQLDelete(sql = "UPDATE spending_category SET deleted_at = NOW() WHERE id = ?")
@SQLDelete(sql = "UPDATE spending_custom_category SET deleted_at = NOW() WHERE id = ?")
public class SpendingCustomCategory extends DateAuditable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand Down

0 comments on commit 2f0a100

Please sign in to comment.