@@ -12,9 +12,9 @@ annual_tax_report_gavebrev_since,
1212annual_tax_report_gaveskema,
1313annual_tax_report_pending_update,
1414charged_donations,
15- charged_donations_internal,
1615charged_donations_by_transfer,
1716charged_donations_by_transfer_internal,
17+ charged_donations_internal,
1818charged_memberships,
1919charged_memberships_internal,
2020charged_or_created_donations,
@@ -28,7 +28,7 @@ donations_to_email,
2828donor_acquisition,
2929donor_impact_report,
3030failed_recurring_donations,
31- failed_recurring_donations_to_auto_cancel ,
31+ failed_recurring_donations_to_auto_renew ,
3232gavebrev_checkins_to_create,
3333gwwc_money_moved,
3434ignored_renewals,
@@ -612,7 +612,7 @@ select
612612 on failed_recurring_donations to reader_sensitive;
613613
614614-- -------
615- create view failed_recurring_donations_to_auto_cancel as
615+ create view failed_recurring_donations_to_auto_renew as
616616with
617617 latest_charges as (
618618 select
@@ -636,11 +636,11 @@ select
636636from
637637 latest_charges
638638where
639- rn <= 3
639+ rn <= 6
640640group by
641641 donation_id
642642having
643- count (* ) = 3
643+ count (* ) = 6
644644 and bool_and(status = ' error' )
645645order by
646646 1
@@ -649,10 +649,10 @@ limit
649649
650650grant
651651select
652- on failed_recurring_donations_to_auto_cancel to reader_sensitive;
652+ on failed_recurring_donations_to_auto_renew to reader_sensitive;
653653
654654grant
655- update on failed_recurring_donations_to_auto_cancel to writer;
655+ update on failed_recurring_donations_to_auto_renew to writer;
656656
657657-- ------------------------------------
658658create view annual_tax_report_const as
0 commit comments