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

Dao.migration如果检查索引,会删除@Name的唯一性索引 #1166

Closed
wendal opened this issue Nov 9, 2016 · 0 comments
Closed

Dao.migration如果检查索引,会删除@Name的唯一性索引 #1166

wendal opened this issue Nov 9, 2016 · 0 comments
Milestone

Comments

@wendal
Copy link
Member

wendal commented Nov 9, 2016

@Table("t_issue_116")
public class Issue1166 {

    @Id
    private int id;
    
    @Name
    private String name;
}
    @Test(expected=DaoException.class)
    public void test_issue_1166() {
        dao.create(Issue1166.class, true);
        Daos.migration(dao, Issue1166.class, true, true, true);
        Issue1166 is = new Issue1166();
        is.setName("wendal");
        
        dao.insert(is);
        dao.insert(is);
    }
@wendal wendal added this to the 1.r.59 milestone Nov 9, 2016
@wendal wendal closed this as completed in 32f3551 Nov 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant