Add procedure document type
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -24,9 +24,10 @@ type (
|
||||
)
|
||||
|
||||
const (
|
||||
DocumentTypeOther DocumentType = "OTHER"
|
||||
DocumentTypeISMS DocumentType = "ISMS"
|
||||
DocumentTypePolicy DocumentType = "POLICY"
|
||||
DocumentTypeOther DocumentType = "OTHER"
|
||||
DocumentTypeISMS DocumentType = "ISMS"
|
||||
DocumentTypePolicy DocumentType = "POLICY"
|
||||
DocumentTypeProcedure DocumentType = "PROCEDURE"
|
||||
)
|
||||
|
||||
func (dt DocumentType) MarshalText() ([]byte, error) {
|
||||
@@ -43,6 +44,8 @@ func (dt *DocumentType) UnmarshalText(data []byte) error {
|
||||
*dt = DocumentTypeISMS
|
||||
case DocumentTypePolicy.String():
|
||||
*dt = DocumentTypePolicy
|
||||
case DocumentTypeProcedure.String():
|
||||
*dt = DocumentTypeProcedure
|
||||
default:
|
||||
return fmt.Errorf("invalid DocumentType value: %q", val)
|
||||
}
|
||||
|
||||
1
pkg/coredata/migrations/20251013T202745Z.sql
Normal file
1
pkg/coredata/migrations/20251013T202745Z.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TYPE document_type ADD VALUE 'PROCEDURE';
|
||||
Reference in New Issue
Block a user