Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions scripts/sql/34604601_deployment_chart_cache.down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--- No down migration required
13 changes: 13 additions & 0 deletions scripts/sql/34604601_deployment_chart_cache.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
--- There was an issue with Deployment chart versions 4.18.0, 4.19.0, 1.0.0, 1.1.0
--- Which was fixed in PR https://github.com/devtron-labs/devtron/pull/5215/files
--- But as we cache the reference chart in DB, we need to clear that cache for those charts
UPDATE charts
SET reference_chart = NULL
WHERE id IN (
SELECT charts.id FROM charts
INNER JOIN chart_ref ON (charts.chart_ref_id = chart_ref.id)
INNER JOIN app ON (charts.app_id = app.id AND app.active = true)
WHERE charts.active = true
AND chart_ref.version IN ('4.18.0', '4.19.0', '1.0.0', '1.1.0')
AND chart_ref.name = 'Deployment'
);