Add document classification
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
12
pkg/coredata/migrations/20251018T081657Z.sql
Normal file
12
pkg/coredata/migrations/20251018T081657Z.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
CREATE TYPE document_classification AS ENUM (
|
||||
'PUBLIC',
|
||||
'INTERNAL',
|
||||
'CONFIDENTIAL',
|
||||
'SECRET'
|
||||
);
|
||||
|
||||
ALTER TABLE documents ADD COLUMN classification document_classification NOT NULL DEFAULT 'CONFIDENTIAL';
|
||||
ALTER TABLE documents ALTER COLUMN classification DROP DEFAULT;
|
||||
|
||||
ALTER TABLE document_versions ADD COLUMN classification document_classification NOT NULL DEFAULT 'CONFIDENTIAL';
|
||||
ALTER TABLE document_versions ALTER COLUMN classification DROP DEFAULT;
|
||||
Reference in New Issue
Block a user