Skip to content

Commit

Permalink
feat: added sql for release and release channels (#4898)
Browse files Browse the repository at this point in the history
* added sql for relese feat

* updated sql script no

* renamed sql files

* updated schema for release & release track

* fixes in schema

* updated schema

* made changes in old schemas

* enum correction

* minor change in script

* sql script update

* updated script

* updated sql script no

* exposed release resource

* updated sql script no

* updated release catalog data

* added rescind status change policy handling

* renaming policy json field

* updated schema ordering

* updated global policy version

* updated policy json

* prod bug fix

* updated policy lock status

* added action check policy release

* wip

* updated policy for release status

* updated down sql

* updated sql script no.

* fixed autocorrect issues

* added first released on key for release

* updated task run migration

* Added task run down migration

* sql script change

* updated policy for action check - instruction patch

* fixed schema merge conflict

---------

Co-authored-by: Shivam-nagar23 <[email protected]>
  • Loading branch information
kartik-579 and Shivam-nagar23 authored May 13, 2024
1 parent aa66ff1 commit d6e8195
Show file tree
Hide file tree
Showing 3 changed files with 2,045 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/bulkAction/BulkUpdateService.go
Original file line number Diff line number Diff line change
Expand Up @@ -1317,7 +1317,7 @@ func (impl BulkUpdateServiceImpl) BulkDeploy(request *BulkApplicationForEnvironm
continue
}
artifact := artifacts[0]
err = impl.cdPipelineEventPublishService.PublishBulkTriggerTopicEvent(pipeline.Id, pipeline.AppId, artifact.CiPipelineId, request.UserId)
err = impl.cdPipelineEventPublishService.PublishBulkTriggerTopicEvent(pipeline.Id, pipeline.AppId, artifact.Id, request.UserId)
if err != nil {
impl.logger.Errorw("error, PublishBulkTriggerTopicEvent", "err", err, "pipeline", pipeline)
pipelineResponse := response[appKey]
Expand Down
15 changes: 15 additions & 0 deletions scripts/sql/244_alter_resource_release_feature.down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
DROP TABLE "public"."devtron_resource_task_run";

DROP SEQUENCE IF EXISTS id_devtron_resource_task_run;

ALTER TABLE devtron_resource_object
DROP COLUMN identifier;

ALTER TABLE devtron_resource_object_audit
DROP COLUMN audit_operation_path;

DELETE FROM devtron_resource_schema where devtron_resource_id in (select id from devtron_resource where kind in('release-track', 'release'));

DELETE FROM devtron_resource where kind in('release-track', 'release');

DELETE FROM global_policy where policy_of in('RELEASE_STATUS', 'RELEASE_ACTION_CHECK');
Loading

0 comments on commit d6e8195

Please sign in to comment.