Add IntervalDescriptor and change DurationConverter to use Interval datatype (#653)

* Add use of interval data type

* Add support for Millis

* Use Java-object type

* Change column type for relock_duration

* add years and months

* Add tests for hours, minutes, and seconds

* Add javadoc describing how joda duration is stored

* Add test for lots of days
This commit is contained in:
sarahcaseybot 2020-08-03 12:42:34 -04:00 committed by GitHub
parent 90d080d42f
commit 4ad7f9734d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 248 additions and 31 deletions

View file

@ -670,7 +670,7 @@ CREATE TABLE public."RegistryLock" (
unlock_completion_timestamp timestamp with time zone,
last_update_timestamp timestamp with time zone,
relock_revision_id bigint,
relock_duration bigint
relock_duration interval
);