实体类有 @Id @Name
'DROP INDEX sys_post.UQ__sys_post__7487D7964A58A0D6'
CaseMessage=An explicit DROP INDEX is not allowed on index 'sys_post.UQ__sys_post__7487D7964A58A0D6'. It is being used for UNIQUE KEY constraint enforcement.
@Table("sys_post")
public class SysPost extends BaseModel {
private static final long serialVersionUID = 1L;
/**
* 岗位ID
*/
@Id
@ColDefine(type = ColType.INT, width = 10)
@Column("post_id")
@Comment("岗位ID")
private Long postId;
/**
* 岗位编码
*/
@Column("post_code")
@Comment("岗位编码")
@Excel(name = "岗位编码")
private String postCode;
/**
* 岗位名称
*/
@Name
@Column("post_name")
@Comment("岗位名称")
@Excel(name = "岗位名称")
private String postName;
MySQL 没问题 SQLserver 就异常了 求大佬赐教