# Weird behaviour using liquibase:diff

**URL:** <https://forum.liquibase.org/t/weird-behaviour-using-liquibase-diff/3722>\
**Category:** General Discussion\
**Created:** [February 27, 2019, 7:21pm UTC](https://forum.liquibase.org/t/weird-behaviour-using-liquibase-diff/3722 "2019-02-27T19:21:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![YiYong](https://avatars.discourse-cdn.com/v4/letter/y/2bfe46/32.png) [@YiYong](https://forum.liquibase.org/u/YiYong)\
**Post date:** [February 27, 2019, 7:21pm UTC](https://forum.liquibase.org/t/weird-behaviour-using-liquibase-diff/3722/1 "2019-02-27T19:21:00Z")

</div>

Hi all, would appreciate some help regarding this issue.&nbsp;

Upon running **mvn liquibase:diff,** I’m seeing weird behaviour where uniqueConstraints are being dropped then added again

_&nbsp; &nbsp;_

_&nbsp; &nbsp;_

_&nbsp;_

_&nbsp;_

_&nbsp; &nbsp;_

_&nbsp; &nbsp;_

_&nbsp;_

 

I’m using liquibase version 3.6.3 with liquibase-hibernate5 version 3.6.

@Entity

@Table(name = "user", uniqueConstraints = {

&nbsp; &nbsp; &nbsp; &nbsp; @UniqueConstraint(name = "uk\_login\_user", columnNames = { "login" }),

&nbsp; &nbsp; &nbsp; &nbsp; @UniqueConstraint(name = "uk\_email\_user", columnNames = { "email" })

})

**public**  **class** User&nbsp;@Email

&nbsp; &nbsp; @Size(max = 100)

&nbsp; &nbsp; @Column(length = 100)

&nbsp; &nbsp;&nbsp; **private** String email;

}
