diff --git a/config/models b/config/models index 65ab350..c87ee40 100644 --- a/config/models +++ b/config/models @@ -39,6 +39,7 @@ Person UniquePersonIdent ident UniquePersonLogin login UniquePersonEmail email + UniquePersonInbox inbox OutboxItem person PersonId diff --git a/src/Vervis/Migration.hs b/src/Vervis/Migration.hs index e00f662..50ef528 100644 --- a/src/Vervis/Migration.hs +++ b/src/Vervis/Migration.hs @@ -593,6 +593,8 @@ changes hLocal ctx = -- 104 , addUnique "InboxItemRemote" $ Unique "UniqueInboxItemRemote" ["inbox", "activity"] + -- 105 + , addUnique "Person" $ Unique "UniquePersonInbox" ["inbox"] ] migrateDB :: MonadIO m => Text -> HashidsContext -> ReaderT SqlBackend m (Either Text (Int, Int))