Make ExpandRecurringBillingEventAction SQL-aware (#1181)

There is some complication regarding how the
CancellationMatchingBillingEvent of the generated OneTime can be
reconstructed when loading from SQL. I decided to only address it in
testing as there is no real value to fully reconstruct this VKey in
production where we are either in SQL or Ofy mode, both never in both.
Therefore the VKey in a particular mode only needs to contain the
corresponding key in order to function.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/google/nomulus/1181)
<!-- Reviewable:end -->
This commit is contained in:
Lai Jiang 2021-06-03 10:21:16 -04:00 committed by GitHub
parent e75d45d45d
commit 80bf0c617b
10 changed files with 4755 additions and 4438 deletions

View file

@ -63,6 +63,7 @@
cost_amount numeric(19, 2),
cost_currency text,
period_years int4,
recurrence_history_revision_id int8,
synthetic_creation_time timestamptz,
primary key (billing_event_id)
);