Integrate transaction persistence into JpaTM (#717)

* Integrate transaction persistence into JpaTM

Store the serialized transaction whenever we commit from the JPA transaction
manager.  This change also adds:

-   The Transaction table.
-   The TransactionEntity which is stored in it.
-   Changes to the test infrastructure to register the TransactionEntity for
    tests where we don't load the nomulus schema.
-   A new configuration variable to allow us to turn the transaction
    persistence functionality on and off (default is "off").

* Changes for review.

* Incremented sequence number of flyway file
This commit is contained in:
Michael Muller 2020-07-28 19:23:44 -04:00 committed by GitHub
parent a56713e4be
commit a802be2a9b
13 changed files with 250 additions and 16 deletions

View file

@ -494,6 +494,12 @@ create sequence history_id_sequence start 1 increment 1;
tld text not null,
primary key (id)
);
create table "Transaction" (
id bigserial not null,
contents bytea,
primary key (id)
);
create index IDXih4b2tea127p5rb61gje6e1y2 on "BillingCancellation" (registrar_id);
create index IDX2exdfbx6oiiwnhr8j6gjpqt2j on "BillingCancellation" (event_time);
create index IDXqa3g92jc17e8dtiaviy4fet4x on "BillingCancellation" (billing_time);