
Add missing unique constraint for original_email
@56ac0ee64f4667ca0bb89fd6e1898b6bded18620
+++ conf/evolutions/default/99.sql
... | ... | @@ -0,0 +1,9 @@ |
1 | +# --- !Ups | |
2 | + | |
3 | +delete from original_email a where a.id > any (select b.id from original_email b where a.message_id = b.message_id); | |
4 | + | |
5 | +alter table original_email add constraint uq_original_email_2 unique (message_id); | |
6 | + | |
7 | +# --- !Downs | |
8 | + | |
9 | +alter table original_email drop constraint if exists uq_original_email_2; |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?