Repository navigation
Conversation
src/script/ddl/*/sym.mnu_create_*.sql 8개에 COMTNSITEMAP 테이블과 인덱스(또는 PK) 정의가 똑같이 두 번 들어 있어, 오류에서 멈추는 방식으로 적재하면 두 번째 정의에서 중단되고 그 뒤의 COMTNMENUCREATDTLS가 만들어지지 않는다. 앞쪽 정의는 그대로 두고 뒤쪽 중복만 지운다.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
관련 이슈: #1399
수정 사유 Reason for modification
소스를 수정한 사유가 무엇인지 체크해 주세요. Please check the reason you modified the source. ([X] X는 대문자여야 합니다.)
수정된 소스 내용 Modified source
메뉴관리 분할 DDL
src/script/ddl/*/sym.mnu_create_*.sql8개에서 두 번 들어 있던 사이트맵 테이블COMTNSITEMAP정의 중 뒤쪽 것을 지웠습니다./* 사이트맵 */,CREATE TABLE, 인덱스 또는 PK, 뒤따르는 빈 줄). 파일마다 삭제만 있고 추가된 줄은 없습니다(합계 -137줄).REFERENCES COMTNSITEMAP)가 있는 6개 파일에서도 앞쪽 정의가 FK보다 먼저 나오므로 생성 순서는 그대로입니다.script/ddl/*/com_DDL_*.sql)에는 중복이 없어 손대지 않았습니다.sym.mnu_create_altibase.sqlsym.mnu_create_cubrid.sqlsym.mnu_create_goldilocks.sqlsym.mnu_create_maria.sqlsym.mnu_create_mysql.sqlsym.mnu_create_oracle.sqlsym.mnu_create_postgres.sqlsym.mnu_create_tibero.sqlJUnit 테스트 JUnit tests
테스트를 완료하셨으면 다음 항목에 [대문자X]로 표시해 주세요. When you're done testing, check the following items.
SQL 스크립트만 바꿨고 스크립트 적재를 다루는 JUnit 테스트가 없어 수동으로 확인했습니다.
테스트 브라우저 Test Browser
테스트를 진행한 브라우저를 선택해 주세요. Please select the browser(s) you ran the test on. (다중 선택 가능 you can select multiple) [X] X는 대문자여야 합니다.
테스트 스크린샷 또는 캡처 영상 Test screenshots or captured video
환경: 기준 코드 main(8badeb0), Windows 11 + Docker 29.7.2. 각 DB의 기본 클라이언트로
sym.mnu_create_*.sql을 빈 DB에 적재했습니다.mysql:8.0/mysql < 파일Table 'COMTNSITEMAP' already exists,COMTNMENUCREATDTLS없음mariadb:11.4/mariadb < 파일COMTNMENUCREATDTLS없음postgres:16/psql -v ON_ERROR_STOP=1relation "comtnsitemap" already exists,comtnmenucreatdtls없음postgres:16/psql기본수정 전 MySQL에서 메인 메뉴 조회(
EgovMainMenu_SQL_mysql.xml의COMTNMENUCREATDTLS A, COMTNMENUINFO B조인)를 실행하면ERROR 1146 (42S02): Table 't.COMTNMENUCREATDTLS' doesn't exist가 나고, 수정 후에는 정상 실행됩니다.Altibase, CUBRID, Goldilocks, Oracle, Tibero는 실행 환경이 없어 적재하지 않았습니다. 이 5개 파일은 같은 중복 블록을 지운 것이며, 남은
CREATE TABLE COMTNSITEMAP이 1개이고, FK가 있는 파일에서는 그 정의가REFERENCES COMTNSITEMAP보다 앞에 있는 것을 확인했습니다.