fix(database): add missing federation table migrations
All checks were successful
ci/woodpecker/push/api Pipeline was successful
All checks were successful
ci/woodpecker/push/api Pipeline was successful
Federation models (FederationConnection, FederatedIdentity, FederationMessage) and their enums were defined in the Prisma schema but never had CREATE TABLE migrations. This caused the 20260203_add_federation_event_subscriptions migration to fail with "relation federation_messages does not exist". Adds new migration 20260202200000 to create the 3 missing enums, 3 missing tables, all indexes, and foreign keys. Removes the now-redundant ALTER TABLE from the 20260203 migration since event_type is created with the table. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,9 +1,3 @@
|
||||
-- Add eventType column to federation_messages table
|
||||
ALTER TABLE "federation_messages" ADD COLUMN "event_type" TEXT;
|
||||
|
||||
-- Add index for eventType
|
||||
CREATE INDEX "federation_messages_event_type_idx" ON "federation_messages"("event_type");
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE "federation_event_subscriptions" (
|
||||
"id" UUID NOT NULL,
|
||||
|
||||
Reference in New Issue
Block a user