Skip to content

Commit

Permalink
Update project asset constraint (#4759)
Browse files Browse the repository at this point in the history
Co-authored-by: Cole Blanchard <[email protected]>
  • Loading branch information
blanchco and Cole Blanchard authored Sep 11, 2024
1 parent bb329ea commit 3ab5eac
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
BEGIN;

ALTER TABLE project_asset
DROP CONSTRAINT project_asset_asset_type_check;

ALTER TABLE project_asset
ADD CONSTRAINT project_asset_asset_type_check
CHECK (asset_type::text = ANY (ARRAY[
'WORKFLOW'::character varying,
'MODEL'::character varying,
'DATASET'::character varying,
'SIMULATION'::character varying,
'DOCUMENT'::character varying,
'CODE'::character varying,
'MODEL_CONFIGURATION'::character varying,
'ARTIFACT'::character varying,
'INTERVENTION_POLICY'::character varying
]));

COMMIT;

0 comments on commit 3ab5eac

Please sign in to comment.