Skip to content

Commit cac4761

Browse files
committed
RHINENG-21214: do not omit stale systems in migration
This caused inconsistencies in dependant tables and culling will take care of proper removal later.
1 parent 977c7cd commit cac4761

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

database_admin/migrations/142_split_system_platform.up.sql

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@ INSERT INTO system_inventory (
105105
stale_timestamp,
106106
stale_warning_timestamp,
107107
culled_timestamp
108-
FROM system_platform sp
109-
WHERE sp.stale = false;
108+
FROM system_platform sp;
110109

111110
SELECT setval('system_inventory_id_seq', (SELECT MAX(id) FROM system_inventory));
112111

@@ -578,8 +577,7 @@ INSERT INTO system_patch SELECT
578577
applicable_advisory_bug_count_cache,
579578
applicable_advisory_sec_count_cache,
580579
template_id
581-
FROM system_platform sp
582-
WHERE sp.stale = false;
580+
FROM system_platform sp;
583581

584582
do $$ begin RAISE NOTICE 'Data loaded into system_patch'; end $$;
585583

0 commit comments

Comments
 (0)