Skip to content

Commit

Permalink
chore: remove cbc history data
Browse files Browse the repository at this point in the history
  • Loading branch information
RRanath committed Oct 16, 2024
1 parent 599348e commit 2990a64
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions db/deploy/clean_pre_cut_over_cbc_history.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- Deploy ccbc:clean_pre_cut_over_cbc_history to pg

BEGIN;

DELETE FROM ccbc_public.record_version WHERE (table_name = 'cbc_data' OR table_name = 'cbc_data_change_reason') AND ts < '2024-10-01 07:00:00+00';

COMMIT;
7 changes: 7 additions & 0 deletions db/revert/clean_pre_cut_over_cbc_history.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- Revert ccbc:clean_pre_cut_over_cbc_history from pg

BEGIN;

-- No need to revert the data deletion as it was done to remove obsolete data

COMMIT;
1 change: 1 addition & 0 deletions db/sqitch.plan
Original file line number Diff line number Diff line change
Expand Up @@ -703,3 +703,4 @@ tables/application_rd 2024-09-11T18:21:13Z Rafael Solorzano <61289255+rafasdc@us
@1.197.1 2024-10-10T17:11:00Z CCBC Service Account <[email protected]> # release v1.197.1
@1.197.2 2024-10-10T22:07:55Z CCBC Service Account <[email protected]> # release v1.197.2
@1.197.3 2024-10-16T16:15:36Z CCBC Service Account <[email protected]> # release v1.197.3
clean_pre_cut_over_cbc_history 2024-10-15T23:26:47Z ,,, <ryohani89@NH504670> # Remove pre-cut-over cbc changes history

0 comments on commit 2990a64

Please sign in to comment.