feat(db): Add favicon support and improve remote followers uniqueness constraint

- Add favicon_url column to nodes table for storing node instance favicons
- Replace actor_url unique constraint with composite unique index on (user_id, actor_url) in remote_followers table
- Update database schema and migration files to reflect new constraints
- Improve data integrity by ensuring remote followers are unique per user and actor combination
This commit is contained in:
Christomatt
2026-01-26 11:20:32 +01:00
parent a15933596c
commit 2fdcfce804
4 changed files with 3624 additions and 2 deletions
+3
View File
@@ -0,0 +1,3 @@
ALTER TABLE "remote_followers" DROP CONSTRAINT "remote_followers_actor_url_unique";--> statement-breakpoint
ALTER TABLE "nodes" ADD COLUMN "favicon_url" text;--> statement-breakpoint
CREATE UNIQUE INDEX "remote_followers_user_actor_unique" ON "remote_followers" USING btree ("user_id","actor_url");
File diff suppressed because it is too large Load Diff
+7
View File
@@ -36,6 +36,13 @@
"when": 1769377790354,
"tag": "0004_luxuriant_lockheed",
"breakpoints": true
},
{
"idx": 5,
"version": "7",
"when": 1769422771465,
"tag": "0005_yummy_millenium_guard",
"breakpoints": true
}
]
}