Skip to content

Commit 5be1812

Browse files
kartik-579Shivam-nagar23
authored andcommitted
feat: added sql for release and release channels (#4898)
* 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 <shivam@devtron.ai>
1 parent 25eb9e2 commit 5be1812

File tree

3 files changed

+2045
-1
lines changed

3 files changed

+2045
-1
lines changed

pkg/bulkAction/BulkUpdateService.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1317,7 +1317,7 @@ func (impl BulkUpdateServiceImpl) BulkDeploy(request *BulkApplicationForEnvironm
13171317
continue
13181318
}
13191319
artifact := artifacts[0]
1320-
err = impl.cdPipelineEventPublishService.PublishBulkTriggerTopicEvent(pipeline.Id, pipeline.AppId, artifact.CiPipelineId, request.UserId)
1320+
err = impl.cdPipelineEventPublishService.PublishBulkTriggerTopicEvent(pipeline.Id, pipeline.AppId, artifact.Id, request.UserId)
13211321
if err != nil {
13221322
impl.logger.Errorw("error, PublishBulkTriggerTopicEvent", "err", err, "pipeline", pipeline)
13231323
pipelineResponse := response[appKey]
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
DROP TABLE "public"."devtron_resource_task_run";
2+
3+
DROP SEQUENCE IF EXISTS id_devtron_resource_task_run;
4+
5+
ALTER TABLE devtron_resource_object
6+
DROP COLUMN identifier;
7+
8+
ALTER TABLE devtron_resource_object_audit
9+
DROP COLUMN audit_operation_path;
10+
11+
DELETE FROM devtron_resource_schema where devtron_resource_id in (select id from devtron_resource where kind in('release-track', 'release'));
12+
13+
DELETE FROM devtron_resource where kind in('release-track', 'release');
14+
15+
DELETE FROM global_policy where policy_of in('RELEASE_STATUS', 'RELEASE_ACTION_CHECK');

0 commit comments

Comments
 (0)