mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor: ♻️ Store instance federation protocol in database, refactor fetcher
This commit is contained in:
parent
6dc51ab323
commit
f2b0de779b
10 changed files with 2515 additions and 73 deletions
2
drizzle/migrations/0028_unique_fat_cobra.sql
Normal file
2
drizzle/migrations/0028_unique_fat_cobra.sql
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
ALTER TABLE "Challenges" ALTER COLUMN "expires_at" SET NOT NULL;--> statement-breakpoint
|
||||
ALTER TABLE "Instances" ADD COLUMN "protocol" text DEFAULT 'lysand' NOT NULL;
|
||||
2144
drizzle/migrations/meta/0028_snapshot.json
Normal file
2144
drizzle/migrations/meta/0028_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -197,6 +197,13 @@
|
|||
"when": 1718327596823,
|
||||
"tag": "0027_peaceful_whistler",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 28,
|
||||
"version": "7",
|
||||
"when": 1719726234826,
|
||||
"tag": "0028_unique_fat_cobra",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -348,6 +348,10 @@ export const Instances = pgTable("Instances", {
|
|||
disableAutomoderation: boolean("disable_automoderation")
|
||||
.default(false)
|
||||
.notNull(),
|
||||
protocol: text("protocol")
|
||||
.notNull()
|
||||
.$type<"lysand" | "activitypub">()
|
||||
.default("lysand"),
|
||||
});
|
||||
|
||||
export const OpenIdAccounts = pgTable("OpenIdAccounts", {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue