Add UniquePersonInbox to persistent model; each user has their own unique inbox

This commit is contained in:
fr33domlover 2019-06-09 15:56:42 +00:00
parent 71ab1c4459
commit f70aa42060
2 changed files with 3 additions and 0 deletions

View file

@ -39,6 +39,7 @@ Person
UniquePersonIdent ident
UniquePersonLogin login
UniquePersonEmail email
UniquePersonInbox inbox
OutboxItem
person PersonId

View file

@ -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))