fix(federation): 🐛 Fix fetching of ActivityPub users not working anymore

This commit is contained in:
Jesse Wierzbinski 2024-07-17 15:37:36 +02:00
parent 0e054e7cba
commit 42ff591e48
No known key found for this signature in database
12 changed files with 2182 additions and 8 deletions

View file

@ -0,0 +1,2 @@
DROP INDEX IF EXISTS "Users_username_index";--> statement-breakpoint
CREATE INDEX IF NOT EXISTS "Users_username_index" ON "Users" USING btree ("username");

File diff suppressed because it is too large Load diff

View file

@ -211,6 +211,13 @@
"when": 1721155789219,
"tag": "0029_shiny_korvac",
"breakpoints": true
},
{
"idx": 30,
"version": "7",
"when": 1721223331975,
"tag": "0030_curvy_vulture",
"breakpoints": true
}
]
}

View file

@ -421,7 +421,7 @@ export const Users = pgTable(
(table) => {
return {
uriKey: uniqueIndex().on(table.uri),
usernameKey: uniqueIndex().on(table.username),
usernameKey: index().on(table.username),
emailKey: uniqueIndex().on(table.email),
};
},