Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flyway script 및 충돌 과정 중 변경된 코드 수정 #382

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@

public class QuerydslSliceHelper {

private static final int PAGE_OFFSET = 1;

private QuerydslSliceHelper() {
}

public static <T> Slice<T> toSlice(final List<T> contents, final Pageable pageable) {
final int size = pageable.getPageSize();
final int size = pageable.getPageSize() * (pageable.getPageNumber() + PAGE_OFFSET);
final boolean hasNext = isContentSizeGreaterThanPageSize(contents, size);

if (hasNext) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ create table profile_image (
);

alter table users drop profile_image;
alter table users add profile_image_id bigint;
alter table users add constraint fk_user_profile_image foreign key (profile_image_id) references profile_image (id);