From b40ef116b18179426431796c96d7c671acea775a Mon Sep 17 00:00:00 2001 From: fr33domlover Date: Wed, 12 Jun 2019 22:14:19 +0000 Subject: [PATCH] For tickets by remote authors, link in the DB to the RemoteActivity, the Offer --- config/models | 2 ++ src/Vervis/Migration.hs | 5 +++++ 2 files changed, 7 insertions(+) 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