-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ refactor(domain): change name announcement -> notice (#493)
* ♻️ refactor(domain): change name announcement -> notice * ♻️ refactor(api): change name announcement -> notice * ♻️ refactor(admin): change name announcement -> notice
- Loading branch information
Showing
9 changed files
with
34 additions
and
32 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
...r/src/main/java/com/depromeet/domains/announcement/repository/AnnouncementRepository.java
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
package com.depromeet.domains.announcement.repository; | ||
|
||
import com.depromeet.announcement.Announcement; | ||
import com.depromeet.notice.Notice; | ||
import org.springframework.data.domain.Page; | ||
import org.springframework.data.domain.Pageable; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface AnnouncementRepository extends JpaRepository<Announcement, Long> { | ||
public interface AnnouncementRepository extends JpaRepository<Notice, Long> { | ||
|
||
Page<Announcement> findAll(Pageable pageable); | ||
Page<Notice> findAll(Pageable pageable); | ||
} |
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
4 changes: 2 additions & 2 deletions
4
...treetdrop-api/src/main/java/com/depromeet/domains/notice/repository/NoticeRepository.java
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
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
2 changes: 2 additions & 0 deletions
2
...domain/src/main/resources/db/migration/V20240702__rename_table_announcement_to_notice.sql
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,2 @@ | ||
ALTER TABLE announcement RENAME notice; | ||
ALTER TABLE notice CHANGE announcement_id notice_id BIGINT NOT NULL AUTO_INCREMENT; |