DB: Add CollabTopicLocalReceive and CollabRecipLocalReceive tables
I was going to link the matching Accept tables to them, but then switched to the Invite-Accept-Grant model and going to implement it in the next patches. So I'm committing these new tables just in case I decide to revert to the current model.
This commit is contained in:
parent
4269385e15
commit
0d96ee0775
4 changed files with 32 additions and 0 deletions
13
migrations/453_2022-09-01_collab_receive.model
Normal file
13
migrations/453_2022-09-01_collab_receive.model
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
CollabTopicLocalReceive
|
||||||
|
collab CollabTopicLocalId
|
||||||
|
item InboxItemId
|
||||||
|
|
||||||
|
UniqueCollabTopicLocalReceiveCollab collab
|
||||||
|
UniqueCollabTopicLocalReceiveItem item
|
||||||
|
|
||||||
|
CollabRecipLocalReceive
|
||||||
|
collab CollabRecipLocalId
|
||||||
|
item InboxItemId
|
||||||
|
|
||||||
|
UniqueCollabRecipLocalReceiveCollab collab
|
||||||
|
UniqueCollabRecipLocalReceiveItem item
|
|
@ -2554,6 +2554,8 @@ changes hLocal ctx =
|
||||||
, addEntities model_451_collab_remote_accept
|
, addEntities model_451_collab_remote_accept
|
||||||
-- 452
|
-- 452
|
||||||
, addFieldPrimRequired "InboxItem" defaultTime "received"
|
, addFieldPrimRequired "InboxItem" defaultTime "received"
|
||||||
|
-- 453
|
||||||
|
, addEntities model_453_collab_receive
|
||||||
]
|
]
|
||||||
|
|
||||||
migrateDB
|
migrateDB
|
||||||
|
|
|
@ -647,3 +647,6 @@ makeEntitiesMigration "447"
|
||||||
|
|
||||||
model_451_collab_remote_accept :: [Entity SqlBackend]
|
model_451_collab_remote_accept :: [Entity SqlBackend]
|
||||||
model_451_collab_remote_accept = $(schema "451_2022-08-30_collab_remote_accept")
|
model_451_collab_remote_accept = $(schema "451_2022-08-30_collab_remote_accept")
|
||||||
|
|
||||||
|
model_453_collab_receive :: [Entity SqlBackend]
|
||||||
|
model_453_collab_receive = $(schema "453_2022-09-01_collab_receive")
|
||||||
|
|
14
th/models
14
th/models
|
@ -619,6 +619,13 @@ CollabTopicLocalLoom
|
||||||
|
|
||||||
UniqueCollabTopicLocalLoom collab
|
UniqueCollabTopicLocalLoom collab
|
||||||
|
|
||||||
|
CollabTopicLocalReceive
|
||||||
|
collab CollabTopicLocalId
|
||||||
|
item InboxItemId
|
||||||
|
|
||||||
|
UniqueCollabTopicLocalReceiveCollab collab
|
||||||
|
UniqueCollabTopicLocalReceiveItem item
|
||||||
|
|
||||||
CollabTopicLocalAccept
|
CollabTopicLocalAccept
|
||||||
collab CollabTopicLocalId
|
collab CollabTopicLocalId
|
||||||
accept OutboxItemId
|
accept OutboxItemId
|
||||||
|
@ -666,6 +673,13 @@ CollabRecipLocal
|
||||||
|
|
||||||
UniqueCollabRecipLocal collab
|
UniqueCollabRecipLocal collab
|
||||||
|
|
||||||
|
CollabRecipLocalReceive
|
||||||
|
collab CollabRecipLocalId
|
||||||
|
item InboxItemId
|
||||||
|
|
||||||
|
UniqueCollabRecipLocalReceiveCollab collab
|
||||||
|
UniqueCollabRecipLocalReceiveItem item
|
||||||
|
|
||||||
CollabRecipLocalAccept
|
CollabRecipLocalAccept
|
||||||
collab CollabRecipLocalId
|
collab CollabRecipLocalId
|
||||||
accept OutboxItemId
|
accept OutboxItemId
|
||||||
|
|
Loading…
Reference in a new issue