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:
@@ -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;
|
||||
Reference in New Issue
Block a user