Add backfilling of posts #846

Open
tudbut wants to merge 21 commits from tudbut/akkoma:develop into develop
Showing only changes of commit f08ca527ff - Show all commits

View file

@ -5,6 +5,8 @@ def up do
alter table(:users) do alter table(:users) do
add_if_not_exists(:outbox, :text) add_if_not_exists(:outbox, :text)
end end
execute("update users set outbox = replace(inbox, 'inbox', 'outbox')")
tudbut marked this conversation as resolved Outdated

This does not generally hold

This does not generally hold

im aware. but for migrating instances, no outboxes will be populated at first so this is kinda the only solution if you want previously fetched users to have the property

im aware. but for migrating instances, no outboxes will be populated at first so this is kinda the only solution if you want previously fetched users to have the property

any idea how to do this more accurately?

any idea how to do this more accurately?

don’t populate it and wait for the next user refresh to occur or Update activity to arrive filling outbox with the correct value

don’t populate it and wait for the next user refresh to occur or Update activity to arrive filling outbox with the correct value

(also this breaks for e.g. users named "inbox")

(also this breaks for e.g. users named "inbox")
end end
def down do def down do