Drop dead description column from documents
The description field on Document and EmployeeDocument was never populated. Remove it from the database, GraphQL schema, and Go types. Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -44,7 +44,6 @@ type (
|
||||
EmployeeDocument struct {
|
||||
ID gid.GID
|
||||
Title string
|
||||
Description *string
|
||||
DocumentType coredata.DocumentType
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
|
||||
Reference in New Issue
Block a user