don't do what fabien propose at comment 3 but instead change the unique constraint on code, and check on uniqueness of (code, company) instead.
Thanks
don't do what fabien propose at comment 3 but instead change the unique constraint on code, and check on uniqueness of (code, company) instead.
Thanks