Add unique UniqueLocalMessageCreate

This commit is contained in:
fr33domlover 2019-05-25 12:59:54 +00:00
parent 2eade80cfb
commit e848fe5fed
2 changed files with 3 additions and 0 deletions

View file

@ -332,6 +332,7 @@ LocalMessage
unlinkedParent FedURI Maybe unlinkedParent FedURI Maybe
UniqueLocalMessage rest UniqueLocalMessage rest
UniqueLocalMessageCreate create
RemoteMessage RemoteMessage
author RemoteActorId author RemoteActorId

View file

@ -472,6 +472,8 @@ changes hLocal ctx =
) )
"create" "create"
"OutboxItem" "OutboxItem"
-- 78
, addUnique "LocalMessage" $ Unique "UniqueLocalMessageCreate" ["create"]
] ]
migrateDB :: MonadIO m => Text -> HashidsContext -> ReaderT SqlBackend m (Either Text (Int, Int)) migrateDB :: MonadIO m => Text -> HashidsContext -> ReaderT SqlBackend m (Either Text (Int, Int))