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.
|
-- TODO: drop the title column from documents.
|
||||||
ALTER TABLE documents ALTER COLUMN title DROP NOT NULL;
|
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 {
|
type Document implements Node {
|
||||||
id: ID!
|
id: ID!
|
||||||
description: String
|
|
||||||
currentPublishedMajor: Int
|
currentPublishedMajor: Int
|
||||||
currentPublishedMinor: Int
|
currentPublishedMinor: Int
|
||||||
trustCenterVisibility: TrustCenterVisibility!
|
trustCenterVisibility: TrustCenterVisibility!
|
||||||
@@ -2603,7 +2602,6 @@ type EmployeeDocument
|
|||||||
) {
|
) {
|
||||||
id: ID!
|
id: ID!
|
||||||
title: String!
|
title: String!
|
||||||
description: String
|
|
||||||
signed: Boolean @goField(forceResolver: true)
|
signed: Boolean @goField(forceResolver: true)
|
||||||
approvalState: DocumentVersionApprovalDecisionState @goField(forceResolver: true)
|
approvalState: DocumentVersionApprovalDecisionState @goField(forceResolver: true)
|
||||||
|
|
||||||
|
|||||||
@@ -44,7 +44,6 @@ type (
|
|||||||
EmployeeDocument struct {
|
EmployeeDocument struct {
|
||||||
ID gid.GID
|
ID gid.GID
|
||||||
Title string
|
Title string
|
||||||
Description *string
|
|
||||||
DocumentType coredata.DocumentType
|
DocumentType coredata.DocumentType
|
||||||
CreatedAt time.Time
|
CreatedAt time.Time
|
||||||
UpdatedAt time.Time
|
UpdatedAt time.Time
|
||||||
|
|||||||
Reference in New Issue
Block a user