feat(federation): add schema columns for upload size mismatch tracking

Adds federation_status and federation_meta to attachments table, and
remote_max_upload_size to federation_peers, with idempotent migrations.
This commit is contained in:
Jannis Braun
2026-03-27 04:32:58 +01:00
parent c9c0acf2c4
commit b9e4c65927
2 changed files with 16 additions and 0 deletions
+3
View File
@@ -94,6 +94,8 @@ export const attachments = sqliteTable('attachments', {
height: integer('height'),
duration: real('duration'),
sourceUrl: text('source_url'),
federationStatus: text('federation_status'),
federationMeta: text('federation_meta'),
createdAt: integer('created_at').notNull(),
});
@@ -315,6 +317,7 @@ export const federationPeers = sqliteTable('federation_peers', {
lastFailureAt: integer('last_failure_at'),
consecutiveFailures: integer('consecutive_failures').default(0),
lastSyncedAt: integer('last_synced_at').default(0),
remoteMaxUploadSize: integer('remote_max_upload_size'),
createdAt: integer('created_at').notNull(),
});