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

[BE] feat: Festival, Ticket 테이블의 school_id의 not null 제약조건 추가(#468) #469

Merged
merged 2 commits into from
Oct 6, 2023
Merged
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 @@ -39,6 +39,7 @@ public class Festival extends BaseTimeEntity {
@Size(max = 255)
private String thumbnail;

@NotNull
@ManyToOne(fetch = FetchType.LAZY)
private School school;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public class Ticket extends BaseTimeEntity {
@ManyToOne(fetch = FetchType.LAZY)
private Stage stage;

@NotNull
private Long schoolId;

@NotNull
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alter table festival
modify school_id bigint not null;

alter table ticket
modify school_id bigint not null;
Loading