1
0
Fork 0
mirror of https://code.sup39.dev/repos/Wqawg synced 2024-12-27 16:54:53 +09:00

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:
fr33domlover 2022-09-01 17:44:43 +00:00
parent 4269385e15
commit 0d96ee0775
4 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,13 @@
CollabTopicLocalReceive
collab CollabTopicLocalId
item InboxItemId
UniqueCollabTopicLocalReceiveCollab collab
UniqueCollabTopicLocalReceiveItem item
CollabRecipLocalReceive
collab CollabRecipLocalId
item InboxItemId
UniqueCollabRecipLocalReceiveCollab collab
UniqueCollabRecipLocalReceiveItem item

View file

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

View file

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

View file

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