mirror of
https://code.sup39.dev/repos/Wqawg
synced 2024-12-28 07:04:52 +09:00
Add UniquePersonInbox to persistent model; each user has their own unique inbox
This commit is contained in:
parent
71ab1c4459
commit
f70aa42060
2 changed files with 3 additions and 0 deletions
|
@ -39,6 +39,7 @@ Person
|
||||||
UniquePersonIdent ident
|
UniquePersonIdent ident
|
||||||
UniquePersonLogin login
|
UniquePersonLogin login
|
||||||
UniquePersonEmail email
|
UniquePersonEmail email
|
||||||
|
UniquePersonInbox inbox
|
||||||
|
|
||||||
OutboxItem
|
OutboxItem
|
||||||
person PersonId
|
person PersonId
|
||||||
|
|
|
@ -593,6 +593,8 @@ changes hLocal ctx =
|
||||||
-- 104
|
-- 104
|
||||||
, addUnique "InboxItemRemote" $
|
, addUnique "InboxItemRemote" $
|
||||||
Unique "UniqueInboxItemRemote" ["inbox", "activity"]
|
Unique "UniqueInboxItemRemote" ["inbox", "activity"]
|
||||||
|
-- 105
|
||||||
|
, addUnique "Person" $ Unique "UniquePersonInbox" ["inbox"]
|
||||||
]
|
]
|
||||||
|
|
||||||
migrateDB :: MonadIO m => Text -> HashidsContext -> ReaderT SqlBackend m (Either Text (Int, Int))
|
migrateDB :: MonadIO m => Text -> HashidsContext -> ReaderT SqlBackend m (Either Text (Int, Int))
|
||||||
|
|
Loading…
Reference in a new issue