Skip to content

Commit c0b2500

Browse files
added migration for statefulset-chart-5-1-0
1 parent a3a37af commit c0b2500

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
DELETE FROM global_strategy_metadata_chart_ref_mapping WHERE chart_ref_id=(select id from chart_ref where version='5.1.0' and location='statefulset-chart_5-1-0' and name is null);
2+
3+
DELETE FROM "public"."chart_ref" WHERE ("location" = 'statefulset-chart_5-1-0' AND "version" = '5.1.0');
4+
5+
UPDATE "public"."chart_ref" SET "is_default" = 't' WHERE "location" = 'statefulset-chart_5-0-0' AND "version" = '5.0.0';
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
INSERT INTO "public"."chart_ref" ("location", "version","deployment_strategy_path", "is_default", "active", "created_on", "created_by", "updated_on", "updated_by","name") VALUES
2+
('statefulset-chart_5-1-0', '5.1.0','pipeline-values.yaml', 'f', 'f', 'now()', 1, 'now()', 1,'StatefulSet');
3+
4+
INSERT INTO global_strategy_metadata_chart_ref_mapping ("global_strategy_metadata_id","chart_ref_id", "active","default","created_on", "created_by", "updated_on", "updated_by") VALUES
5+
((select id from global_strategy_metadata where name='ROLLINGUPDATE') ,(select id from chart_ref where location='statefulset-chart_5-1-0'), true,true,now(), 1, now(), 1),
6+
((select id from global_strategy_metadata where name='ONDELETE') ,(select id from chart_ref where location='statefulset-chart_5-1-0'), true, false,now(), 1, now(), 1);

0 commit comments

Comments
 (0)