refactor database schema for blocked instances #229
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Whether an instance is blocked is currently stored in
meta.blockedHosts
. Instead it would be more practical if this information was stored in theinstance
table, sinceinstance.suspended
is also already stored there.After this is refactored, it would for example be possible to further simplify the code in
packages/backend/src/misc/skipped-instances.ts
.I don't think it is a good idea to change this because the current data model allows you to block an instance that has not been fetched yet, which the new data model wouldn't allow you to do.
Would it potentially be worthwhile to refactor it into an "instance_relationship" table instead?
This would be useful for: