diff --git a/config/models b/config/models index 9d396a0..ffded75 100644 --- a/config/models +++ b/config/models @@ -312,8 +312,10 @@ TicketAuthorLocal TicketAuthorRemote ticket TicketId author RemoteActorId + offer RemoteActivityId UniqueTicketAuthorRemote ticket + UniqueTicketAuthorRemoteOffer offer TicketDependency parent TicketId diff --git a/src/Vervis/Migration.hs b/src/Vervis/Migration.hs index 0fcc8ba..28bd6e9 100644 --- a/src/Vervis/Migration.hs +++ b/src/Vervis/Migration.hs @@ -663,6 +663,11 @@ changes hLocal ctx = "FollowerSet" -- 111 , addUnique "Project" $ Unique "UniqueProjectFollowers" ["followers"] + -- 112 + , addFieldRefRequiredEmpty "TicketAuthorRemote" "offer" "RemoteActivity" + -- 113 + , addUnique "TicketAuthorRemote" $ + Unique "UniqueTicketAuthorRemoteOffer" ["offer"] ] migrateDB