mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
db constraint with unique remoteId if set, handle sync with tests
This commit is contained in:
@@ -26,9 +26,10 @@ use Symfony\Component\Serializer\Annotation as Serializer;
|
||||
* The event/calendar in the user may have a different id than the mainUser. We add then fields to store the
|
||||
* remote id of this event in the remote calendar.
|
||||
*
|
||||
* @ORM\Table(name="chill_calendar.invite", indexes={
|
||||
* @ORM\Index(name="idx_calendar_invite_remote", columns={"remoteId"})
|
||||
* })
|
||||
* @ORM\Table(
|
||||
* name="chill_calendar.invite",
|
||||
* uniqueConstraints={@ORM\UniqueConstraint(name="idx_calendar_invite_remote", columns={"remoteId"}, options={"where": "remoteId <> ''"})}
|
||||
* )
|
||||
* @ORM\Entity
|
||||
*/
|
||||
class Invite implements TrackUpdateInterface, TrackCreationInterface
|
||||
|
Reference in New Issue
Block a user