Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
devxb committed Feb 15, 2024
2 parents c49ca1e + 736e0bf commit a33d209
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/net/teumteum/user/service/UserService.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void addFriends(Long myId, Long friendId) {
var me = getUser(myId);
var friend = getUser(friendId);

me.addFriend(friend);
friend.addFriend(me);
}

@Transactional
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/db/migration/V17__alter_alert_type.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
alter table alert drop column type;
alter table alert add column type enum('BEFORE_MEETING', 'END_MEETING', 'RECOMMEND_USER') not null;
2 changes: 1 addition & 1 deletion src/test/resources/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ create table if not exists alert(
user_id bigint not null,
title text not null,
`body` text not null,
type enum('BEFORE_MEETING'),
type enum('BEFORE_MEETING', 'END_MEETING', 'RECOMMEND_USER'),
created_at datetime not null,
updated_at datetime not null,
is_read boolean not null,
Expand Down

0 comments on commit a33d209

Please sign in to comment.