diff --git a/pkg/coredata/migrations/20260407T120000Z.sql b/pkg/coredata/migrations/20260407T120000Z.sql index 1ba90bf77..377bbf253 100644 --- a/pkg/coredata/migrations/20260407T120000Z.sql +++ b/pkg/coredata/migrations/20260407T120000Z.sql @@ -14,3 +14,5 @@ -- TODO: drop the title column from documents. ALTER TABLE documents ALTER COLUMN title DROP NOT NULL; + +ALTER TABLE documents DROP COLUMN description; diff --git a/pkg/server/api/console/v1/schema.graphql b/pkg/server/api/console/v1/schema.graphql index 0b21809f5..abcfa52d2 100644 --- a/pkg/server/api/console/v1/schema.graphql +++ b/pkg/server/api/console/v1/schema.graphql @@ -2562,7 +2562,6 @@ type Evidence implements Node { type Document implements Node { id: ID! - description: String currentPublishedMajor: Int currentPublishedMinor: Int trustCenterVisibility: TrustCenterVisibility! @@ -2603,7 +2602,6 @@ type EmployeeDocument ) { id: ID! title: String! - description: String signed: Boolean @goField(forceResolver: true) approvalState: DocumentVersionApprovalDecisionState @goField(forceResolver: true) diff --git a/pkg/server/api/console/v1/types/employee_document.go b/pkg/server/api/console/v1/types/employee_document.go index b579ab722..94d4f791f 100644 --- a/pkg/server/api/console/v1/types/employee_document.go +++ b/pkg/server/api/console/v1/types/employee_document.go @@ -44,7 +44,6 @@ type ( EmployeeDocument struct { ID gid.GID Title string - Description *string DocumentType coredata.DocumentType CreatedAt time.Time UpdatedAt time.Time