Skip to content

Commit

Permalink
fix: image promotion sql script (#4996)
Browse files Browse the repository at this point in the history
* wip

* wip
  • Loading branch information
iamayushm authored Apr 23, 2024
1 parent dbefd60 commit 1e666e4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions scripts/sql/238_artifacts_promotion.down.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,8 @@ ALTER TABLE deployment_approval_user_data

DROP INDEX unique_user_request_action;

ALTER TABLE "resource_filter_evaluation_audit" DROP COLUMN "filter_type";

DROP INDEX IF EXISTS unique_user_request_action;

ALTER TABLE "resource_filter_evaluation_audit" DROP COLUMN "filter_type";

DROP SEQUENCE IF EXISTS id_artifact_promotion_approval_request;

DROP TABLE "public"."artifact_promotion_approval_request";
Expand Down
2 changes: 0 additions & 2 deletions scripts/sql/238_artifacts_promotion.up.sql
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ ALTER TABLE deployment_approval_user_data RENAME TO request_approval_user_data;
CREATE UNIQUE INDEX "unique_user_request_action"
ON request_approval_user_data(user_id,approval_request_id,request_type);
-- 1 for resource_filter, 2 for artifact promotion policy filter evaluation
ALTER TABLE resource_filter_evaluation_audit ADD COLUMN "filter_type" integer DEFAULT 1;



-- create artifact promotion approval request table
Expand Down

0 comments on commit 1e666e4

Please sign in to comment.