-
Notifications
You must be signed in to change notification settings - Fork 2
prod : S3Key TEXT 타입으로 변경 #271
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,60 @@ | ||||||||||||||||||||||||||||||||||||||
| INSERT INTO sa.exam (created_at, updated_at, detail, street, zipcode, area, capacity, | ||||||||||||||||||||||||||||||||||||||
| deadline_time, exam_date, lunch_name, lunch_price, school_name, deleted, | ||||||||||||||||||||||||||||||||||||||
| exam_status) | ||||||||||||||||||||||||||||||||||||||
| VALUES ('2025-08-03 05:01:17.931747', '2025-08-03 05:01:17.931747', '강남구 대치동 987', '서울특별시', | ||||||||||||||||||||||||||||||||||||||
| '06234', 'DAECHI', 532, '2025-10-12 23:59:59.000000', '2025-10-19', '고정 도시락', 9000, '대치중학교', | ||||||||||||||||||||||||||||||||||||||
| false, 'OPEN'); | ||||||||||||||||||||||||||||||||||||||
| INSERT INTO sa.exam (created_at, updated_at, detail, street, zipcode, area, capacity, | ||||||||||||||||||||||||||||||||||||||
| deadline_time, exam_date, lunch_name, lunch_price, school_name, deleted, | ||||||||||||||||||||||||||||||||||||||
| exam_status) | ||||||||||||||||||||||||||||||||||||||
| VALUES ('2025-08-03 05:01:17.939018', '2025-08-03 05:01:17.939018', '양천구 목동서로 369', '서울특별시', | ||||||||||||||||||||||||||||||||||||||
| '07995', 'MOKDONG', 896, '2025-10-19 23:59:59.000000', '2025-10-26', '고정 도시락', 9000, | ||||||||||||||||||||||||||||||||||||||
| '목운중학교', false, 'OPEN'); | ||||||||||||||||||||||||||||||||||||||
| INSERT INTO sa.exam (created_at, updated_at, detail, street, zipcode, area, capacity, | ||||||||||||||||||||||||||||||||||||||
| deadline_time, exam_date, lunch_name, lunch_price, school_name, deleted, | ||||||||||||||||||||||||||||||||||||||
| exam_status) | ||||||||||||||||||||||||||||||||||||||
| VALUES ('2025-08-03 05:01:17.945445', '2025-08-03 05:01:17.945445', '양천구 신정로 250', '서울특별시', | ||||||||||||||||||||||||||||||||||||||
| '08018', 'MOKDONG', 896, '2025-10-26 23:59:59.000000', '2025-11-02', '고정 도시락', 9000, | ||||||||||||||||||||||||||||||||||||||
| '신서중학교', false, 'OPEN'); | ||||||||||||||||||||||||||||||||||||||
| INSERT INTO sa.exam (created_at, updated_at, detail, street, zipcode, area, capacity, | ||||||||||||||||||||||||||||||||||||||
| deadline_time, exam_date, lunch_name, lunch_price, school_name, deleted, | ||||||||||||||||||||||||||||||||||||||
| exam_status) | ||||||||||||||||||||||||||||||||||||||
| VALUES ('2025-08-03 05:01:17.952291', '2025-08-03 05:01:17.952291', '강남구 개포로 619', '서울특별시', | ||||||||||||||||||||||||||||||||||||||
| '06327', 'DAECHI', 840, '2025-10-19 23:59:59.000000', '2025-10-26', '고정 도시락', 9000, '개원중학교', | ||||||||||||||||||||||||||||||||||||||
| false, 'OPEN'); | ||||||||||||||||||||||||||||||||||||||
| INSERT INTO sa.exam (created_at, updated_at, detail, street, zipcode, area, capacity, | ||||||||||||||||||||||||||||||||||||||
| deadline_time, exam_date, lunch_name, lunch_price, school_name, deleted, | ||||||||||||||||||||||||||||||||||||||
| exam_status) | ||||||||||||||||||||||||||||||||||||||
| VALUES ('2025-08-03 05:01:17.958425', '2025-08-03 05:01:17.958425', '강남구 개포로 619', '서울특별시', | ||||||||||||||||||||||||||||||||||||||
| '06327', 'DAECHI', 840, '2025-10-26 23:59:59.000000', '2025-11-02', '고정 도시락', 9000, '개원중학교', | ||||||||||||||||||||||||||||||||||||||
| false, 'OPEN'); | ||||||||||||||||||||||||||||||||||||||
| INSERT INTO sa.exam (created_at, updated_at, detail, street, zipcode, area, capacity, | ||||||||||||||||||||||||||||||||||||||
| deadline_time, exam_date, lunch_name, lunch_price, school_name, deleted, | ||||||||||||||||||||||||||||||||||||||
| exam_status) | ||||||||||||||||||||||||||||||||||||||
| VALUES ('2025-08-03 05:01:17.965381', '2025-08-03 05:01:17.965381', '영등포구 문래로 195', '서울특별시', | ||||||||||||||||||||||||||||||||||||||
| '07291', 'MOKDONG', 558, '2025-10-12 23:59:59.000000', '2025-10-19', '고정 도시락', 9000, | ||||||||||||||||||||||||||||||||||||||
| '문래중학교', false, 'OPEN'); | ||||||||||||||||||||||||||||||||||||||
| INSERT INTO sa.exam (created_at, updated_at, detail, street, zipcode, area, capacity, | ||||||||||||||||||||||||||||||||||||||
| deadline_time, exam_date, lunch_name, lunch_price, school_name, deleted, | ||||||||||||||||||||||||||||||||||||||
| exam_status) | ||||||||||||||||||||||||||||||||||||||
| VALUES ('2025-08-03 05:01:17.972408', '2025-08-03 05:01:17.972408', '노원구 덕릉로 70길 99', '서울특별시', | ||||||||||||||||||||||||||||||||||||||
| '01673', 'NOWON', 448, '2025-10-12 23:59:59.000000', '2025-10-19', '고정 도시락', 9000, '온곡중학교', | ||||||||||||||||||||||||||||||||||||||
| false, 'OPEN'); | ||||||||||||||||||||||||||||||||||||||
| INSERT INTO sa.exam (created_at, updated_at, detail, street, zipcode, area, capacity, | ||||||||||||||||||||||||||||||||||||||
| deadline_time, exam_date, lunch_name, lunch_price, school_name, deleted, | ||||||||||||||||||||||||||||||||||||||
| exam_status) | ||||||||||||||||||||||||||||||||||||||
| VALUES ('2025-08-03 05:01:17.978612', '2025-08-03 05:01:17.978612', '노원구 덕릉로 70길 99', '서울특별시', | ||||||||||||||||||||||||||||||||||||||
| '01673', 'NOWON', 448, '2025-10-26 23:59:59.000000', '2025-11-02', '고정 도시락', 9000, '온곡중학교', | ||||||||||||||||||||||||||||||||||||||
| false, 'OPEN'); | ||||||||||||||||||||||||||||||||||||||
| INSERT INTO sa.exam (created_at, updated_at, detail, street, zipcode, area, capacity, | ||||||||||||||||||||||||||||||||||||||
| deadline_time, exam_date, lunch_name, lunch_price, school_name, deleted, | ||||||||||||||||||||||||||||||||||||||
| exam_status) | ||||||||||||||||||||||||||||||||||||||
| VALUES ('2025-08-03 05:01:17.982574', '2025-08-03 05:01:17.982574', '대구광역시 달서구 장기로 76', '서울특별시', | ||||||||||||||||||||||||||||||||||||||
| '42677', 'DAEGU', 392, '2025-10-12 23:59:59.000000', '2025-10-19', '고정 도시락', 9000, '노변중학교', | ||||||||||||||||||||||||||||||||||||||
| false, 'OPEN'); | ||||||||||||||||||||||||||||||||||||||
| INSERT INTO sa.exam (created_at, updated_at, detail, street, zipcode, area, capacity, | ||||||||||||||||||||||||||||||||||||||
| deadline_time, exam_date, lunch_name, lunch_price, school_name, deleted, | ||||||||||||||||||||||||||||||||||||||
| exam_status) | ||||||||||||||||||||||||||||||||||||||
| VALUES ('2025-08-03 05:01:17.988270', '2025-08-03 05:01:17.988270', '대구광역시 달서구 장기로 76', '서울특별시', | ||||||||||||||||||||||||||||||||||||||
| '42677', 'DAEGU', 392, '2025-10-26 23:59:59.000000', '2025-11-02', '고정 도시락', 9000, '노변중학교', | ||||||||||||||||||||||||||||||||||||||
| false, 'OPEN'); | ||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+52
to
+60
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The address data for '노변중학교' in these two
Suggested change
Comment on lines
+1
to
+60
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This new
Comment on lines
+1
to
+60
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For better performance and readability, you can combine all Example: INSERT INTO sa.exam (created_at, updated_at, ...) VALUES
('...', '...', ...),
('...', '...', ...); |
||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using
columnDefinition = "TEXT"is specific to certain databases like MySQL or PostgreSQL and can harm database portability. For better portability and to adhere to JPA standards for large string fields, it's recommended to use the@Lobannotation instead. This will map to the appropriate large object type for the target database (e.g.,TEXT,CLOB). You will need to addimport jakarta.persistence.Lob;.