-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: clearFields N2N * fix: v3.7 BW 无需修正,值由用户提供 * be: isEnableBizzPart * be: dbInfo, allowPublicKeyRetrieval * 3.6.5 * be
- Loading branch information
1 parent
ba912dc
commit bcdd1e0
Showing
9 changed files
with
171 additions
and
37 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/*! | ||
Copyright (c) REBUILD <https://getrebuild.com/> and/or its owners. All rights reserved. | ||
rebuild is dual-licensed under commercial and open source licenses (GPLv3). | ||
See LICENSE and COMMERCIAL in the project root for license information. | ||
*/ | ||
|
||
package com.rebuild.core.support.setup; | ||
|
||
/** | ||
* @author RB | ||
* @since 2024/4/10 | ||
*/ | ||
public class DbInfo { | ||
|
||
final private String desc; | ||
|
||
protected DbInfo(String desc) { | ||
this.desc = desc; | ||
} | ||
|
||
public boolean isOceanBase() { | ||
return desc.contains("OceanBase"); | ||
} | ||
|
||
public boolean isH2() { | ||
return desc.contains("H2"); | ||
} | ||
|
||
public boolean isMySQL56() { | ||
if (isOceanBase()) return false; | ||
return desc.contains("5.6."); | ||
} | ||
|
||
public boolean isMySQL80() { | ||
if (isOceanBase()) return false; | ||
return desc.contains("8.0.") || desc.contains("8.1."); | ||
} | ||
|
||
/** | ||
* @param L | ||
* @return | ||
*/ | ||
protected boolean isIgnoredSqlLine(String L) { | ||
if (isH2()) { | ||
// NOTE `double` 字段也不支持 | ||
return L.startsWith("fulltext ") || L.startsWith("unique ") || L.startsWith("index "); | ||
} | ||
|
||
if (isOceanBase()) { | ||
return L.startsWith("fulltext "); | ||
} | ||
|
||
if (isMySQL56()) { | ||
// FIXME 针对实体,注意后续添加 | ||
return L.startsWith("index IX0_attachment_folder"); | ||
} | ||
|
||
return false; | ||
} | ||
} |
Oops, something went wrong.