mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
feat(federation): ✨ Store remote instance shared inbox and extensions as well
This commit is contained in:
parent
5fc6c4dcfa
commit
7a73a1a24e
6 changed files with 2253 additions and 1 deletions
2
drizzle/migrations/0036_cuddly_ironclad.sql
Normal file
2
drizzle/migrations/0036_cuddly_ironclad.sql
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
ALTER TABLE "Instances" ADD COLUMN "inbox" text;--> statement-breakpoint
|
||||
ALTER TABLE "Instances" ADD COLUMN "extensions" jsonb;
|
||||
2237
drizzle/migrations/meta/0036_snapshot.json
Normal file
2237
drizzle/migrations/meta/0036_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -253,6 +253,13 @@
|
|||
"when": 1732398961365,
|
||||
"tag": "0035_pretty_whiplash",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 36,
|
||||
"version": "7",
|
||||
"when": 1732563077877,
|
||||
"tag": "0036_cuddly_ironclad",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -351,7 +351,9 @@ export const Instances = pgTable("Instances", {
|
|||
.notNull()
|
||||
.$type<"versia" | "activitypub">()
|
||||
.default("versia"),
|
||||
inbox: text("inbox"),
|
||||
publicKey: jsonb("public_key").$type<InstanceMetadata["public_key"]>(),
|
||||
extensions: jsonb("extensions").$type<InstanceMetadata["extensions"]>(),
|
||||
});
|
||||
|
||||
export const OpenIdAccounts = pgTable("OpenIdAccounts", {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue