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

최초 스키마 생성 시 외래키가 있는 테이블은 drop이 안되고 있습니다. #40

Open
jejugamja opened this issue Feb 15, 2017 · 0 comments

Comments

@jejugamja
Copy link

jejugamja commented Feb 15, 2017

com.chequer.axboot.core.db.schema 패키지
SchemaGenerator 클래스에서
createSchema() 메소드

for (String DDL : DDLs) {
if (!DDL.toLowerCase().contains("foreign key")) {
if (DDL.toLowerCase().startsWith("create table")) {
convertedDDLs.add(convert(DDL));
} else {
convertedDDLs.add(DDL);
}
}
}

여기에서 drop foreign key 쿼리가 걸러져 버려서
버그가 생긴거 같습니다.

DB는 mysql 입니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant