Skip to content

Commit

Permalink
批量导出 DDL 时 SqlServer 和 SqlServer2008 调整顺序
Browse files Browse the repository at this point in the history
  • Loading branch information
think-gem committed Jan 20, 2025
1 parent fb6ff3e commit a3a4c89
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: ermasterr
Bundle-SymbolicName: org.insightech.er;singleton:=true
Bundle-Version: 1.2.0
Bundle-Version: 1.2.1
Bundle-Activator: org.insightech.er.ERDiagramActivator
Bundle-Localization: plugin
Require-Bundle: org.eclipse.ui,
Expand Down
5 changes: 2 additions & 3 deletions features/feature.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,18 @@
<feature
id="org.insightech.er"
label="ERMaster Features"
version="1.2.0"
version="1.2.1"
provider-name="jeesite.com">

<description url="http://jeesite.com">
ER Master是一个用于设计ER模型图的Eclipse插件。提供的功能包括:从数据库导入关系生成ER图,导出设计图,导出DDL数据定义语句等。目前完整支持的数据库包括MySQL、Oracle、SQLServer、PostgreSQL、DB2等。

更新日志:( by jeesite.com )

v1.1.15 增加批量生成不同数据库的 DLL 脚本,极大的方便了通过标准库一次建模,导出各种数据库类型的 DDL,自动进行数据类型转换;
v1.1.16 调整批量生成 DLL 排序,常见库靠前排放,方便选择;
v1.1.17 支持 jdk17;支持黑暗模式;支持新版本 Eclipse;
v1.1.18 H2 库增加 COMMENT 备注导出;
v1.2.0 标准库增加 longtext 类型;支持 MySQL 8.x 驱动导入表;默认显示逻辑字段名;
v1.2.1 批量导出 DDL 时 SqlServer 和 SqlServer2008 调整顺序;
</description>

<copyright url="http://jeesite.com">
Expand Down
4 changes: 2 additions & 2 deletions src/org/insightech/er/db/DBManagerFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class DBManagerFactory {
static {
new MySQLDBManager();
new OracleDBManager();
new SqlServer2008DBManager();
new SqlServerDBManager();
new PostgresDBManager();

new DB2DBManager();
Expand All @@ -37,7 +37,7 @@ public class DBManagerFactory {
new HSQLDBDBManager();
new SQLiteDBManager();
new InformixDBManager();
new SqlServerDBManager();
new SqlServer2008DBManager();

new StandardSQLDBManager();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ protected void doProcess(final ProgressMonitor monitor) throws Exception {
new ChangeSettingsCommand(diagram, settings, false).execute();
// 生成 DDL 文件
String db = dbManager.getId()
.replaceAll(SqlServer2008DBManager.ID, "mssql")
.replaceAll(SqlServerDBManager.ID, "mssql2000")
.replaceAll(SqlServerDBManager.ID, "mssql")
.replaceAll(SqlServer2008DBManager.ID, "mssql2008")
.toLowerCase().replaceAll(" ", "");
StringBuilder fileName = new StringBuilder(exportDDLSetting.getDdlOutput());
int lastIndexOf = fileName.lastIndexOf(File.separator);
Expand Down
Binary file modified updatesite/artifacts.jar
Binary file not shown.
Binary file modified updatesite/content.jar
Binary file not shown.
Binary file not shown.
Binary file added updatesite/plugins/org.insightech.er_1.2.1.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion updatesite/site.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ v1.1.17 支持 jdk17;支持黑暗模式;支持新版本 Eclipse;
v1.1.18 H2 库增加 COMMENT 备注导出;
v1.2.0 标准库增加 longtext 类型;支持 MySQL 8.x 驱动导入表;默认显示逻辑字段名;
</description>
<feature url="features/org.insightech.er_1.2.0.jar" id="org.insightech.er" version="1.2.0">
<feature url="features/org.insightech.er_1.2.1.jar" id="org.insightech.er" version="1.2.1">
<category name="ERMaster"/>
</feature>
<category-def name="ERMaster" label="ERMaster"/>
Expand Down

0 comments on commit a3a4c89

Please sign in to comment.