fix: add missing deleted_at columns to all plugin tables, fix system-settings response schema, fix transaction rollback in permissions

This commit is contained in:
Agent Zero
2026-07-24 10:34:38 +02:00
parent ecab11c19a
commit eaa71780d4
14 changed files with 96 additions and 16 deletions
@@ -6,6 +6,7 @@ CREATE TABLE IF NOT EXISTS entity_links (
entity_type VARCHAR(20) NOT NULL,
entity_id UUID NOT NULL,
created_by UUID,
deleted_at TIMESTAMPTZ,
created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
updated_at TIMESTAMPTZ NOT NULL DEFAULT now(),
CONSTRAINT uq_entity_links_file_entity UNIQUE (tenant_id, file_id, entity_type, entity_id)
@@ -0,0 +1,3 @@
-- Fix: EntityLink inherits TenantMixin -> SoftDeleteMixin (deleted_at)
-- Migration 0001 did not include this column
ALTER TABLE entity_links ADD COLUMN IF NOT EXISTS deleted_at TIMESTAMPTZ;