Add block subjects to exported dids
This commit is contained in:
parent
7af2a3f8be
commit
81152c0bfc
1 changed files with 16 additions and 0 deletions
16
db-migration/migrations/20240403_update_export_dids.sql
Normal file
16
db-migration/migrations/20240403_update_export_dids.sql
Normal file
|
@ -0,0 +1,16 @@
|
|||
|
||||
drop materialized view export_dids;
|
||||
|
||||
create materialized view export_dids
|
||||
as select distinct did as "did:ID" from (
|
||||
select did from repos
|
||||
union
|
||||
select distinct ":END_ID" as did from export_follows
|
||||
union
|
||||
select distinct ":END_ID" as did from export_likes
|
||||
union
|
||||
select distinct ":END_ID" as did from export_replies
|
||||
union
|
||||
select distinct ":END_ID" as did from export_blocks
|
||||
)
|
||||
with no data;
|
Loading…
Add table
Add a link
Reference in a new issue