同步数据库表时保留更多信息
1. 增加代码生成通用常量中的数据库时间类型datetime2(SQL Server) 2. 字段如果在列表中显示,增加保留显示类型选项
This commit is contained in:
@ -38,7 +38,7 @@ public class GenConstants
|
||||
public static final String[] COLUMNTYPE_TEXT = { "tinytext", "text", "mediumtext", "longtext" };
|
||||
|
||||
/** 数据库时间类型 */
|
||||
public static final String[] COLUMNTYPE_TIME = { "datetime", "time", "date", "timestamp" };
|
||||
public static final String[] COLUMNTYPE_TIME = { "datetime", "datetime2", "time", "date", "timestamp" };
|
||||
|
||||
/** 数据库数字类型 */
|
||||
public static final String[] COLUMNTYPE_NUMBER = { "tinyint", "smallint", "mediumint", "int", "number", "integer",
|
||||
|
Reference in New Issue
Block a user