1
0
Fork 0
mirror of https://code.sup39.dev/repos/Wqawg synced 2024-12-27 15:24:51 +09:00

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