Skip to content

Commit ce8ff3e

Browse files
committed
Fix a bug of follows_follower_id_accounts_id_fk
Fix #112
1 parent 6dd402f commit ce8ff3e

File tree

4 files changed

+2853
-0
lines changed

4 files changed

+2853
-0
lines changed

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,16 @@ Version 0.4.8
66

77
To be released.
88

9+
- Fixed a bug where the `follows.follower_id` column had not referenced the
10+
`accounts.id` column. [[#112]]
11+
912
- Fixed a bug where the federation dashboard had not shown due to server
1013
errors when an instance had just been set up.
1114

1215
- Upgrade Fedify to 1.3.9.
1316

17+
[#112]: https://github.com/fedify-dev/hollo/issues/112
18+
1419

1520
Version 0.4.7
1621
-------------
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
ALTER TABLE "follows" DROP CONSTRAINT "follows_follower_id_accounts_id_fk";
2+
--> statement-breakpoint
3+
DELETE FROM "follows" WHERE "follower_id" NOT IN (SELECT "id" FROM "accounts");
4+
--> statement-breakpoint
5+
ALTER TABLE "follows" ADD CONSTRAINT "follows_follower_id_accounts_id_fk" FOREIGN KEY ("follower_id") REFERENCES "public"."accounts"("id") ON DELETE cascade ON UPDATE no action;

0 commit comments

Comments
 (0)