Use TransactionManager APIs in DatastoreHelper (#849)

* Make DatastoreHelper support Postgresql

* Rebase on HEAD

* Resolve comments

* Use put* inside insert* and update*

* Resolve comments
This commit is contained in:
Shicong Huang 2020-10-29 11:41:04 -04:00 committed by GitHub
parent 6f3b382a2d
commit 2000ea2d60
30 changed files with 979 additions and 299 deletions

View file

@ -261,11 +261,11 @@ td.section {
</tr>
<tr>
<td class="property_name">generated on</td>
<td class="property_value">2020-10-26 15:49:09.291097</td>
<td class="property_value">2020-10-26 18:19:17.415062</td>
</tr>
<tr>
<td class="property_name">last flyway file</td>
<td id="lastFlywayFile" class="property_value">V67__grace_period_history_ids.sql</td>
<td id="lastFlywayFile" class="property_value">V68__make_reserved_list_nullable_in_registry.sql</td>
</tr>
</tbody>
</table>
@ -284,7 +284,7 @@ td.section {
generated on
</text>
<text text-anchor="start" x="3310.05" y="-10.8" font-family="Helvetica,sans-Serif" font-size="14.00">
2020-10-26 15:49:09.291097
2020-10-26 18:19:17.415062
</text>
<polygon fill="none" stroke="#888888" points="3222.55,-4 3222.55,-44 3487.55,-44 3487.55,-4 3222.55,-4" /> <!-- allocationtoken_a08ccbef -->
<g id="node1" class="node">

View file

@ -261,11 +261,11 @@ td.section {
</tr>
<tr>
<td class="property_name">generated on</td>
<td class="property_value">2020-10-26 15:49:07.386754</td>
<td class="property_value">2020-10-26 18:19:15.617359</td>
</tr>
<tr>
<td class="property_name">last flyway file</td>
<td id="lastFlywayFile" class="property_value">V67__grace_period_history_ids.sql</td>
<td id="lastFlywayFile" class="property_value">V68__make_reserved_list_nullable_in_registry.sql</td>
</tr>
</tbody>
</table>
@ -284,7 +284,7 @@ td.section {
generated on
</text>
<text text-anchor="start" x="3735.5" y="-10.8" font-family="Helvetica,sans-Serif" font-size="14.00">
2020-10-26 15:49:07.386754
2020-10-26 18:19:15.617359
</text>
<polygon fill="none" stroke="#888888" points="3648,-4 3648,-44 3913,-44 3913,-4 3648,-4" /> <!-- allocationtoken_a08ccbef -->
<g id="node1" class="node">
@ -5600,7 +5600,7 @@ td.section {
<text text-anchor="start" x="3780.5" y="-6672.4" font-family="Helvetica,sans-Serif" font-size="14.00">
</text>
<text text-anchor="start" x="3788.5" y="-6672.4" font-family="Helvetica,sans-Serif" font-size="14.00">
_text not null
_text
</text>
<text text-anchor="start" x="3509.5" y="-6653.4" font-family="Helvetica,sans-Serif" font-size="14.00">
restore_billing_cost_amount
@ -11740,7 +11740,7 @@ td.section {
<tr>
<td class="spacer"></td>
<td class="minwidth">reserved_list_names</td>
<td class="minwidth">_text not null</td>
<td class="minwidth">_text</td>
</tr>
<tr>
<td class="spacer"></td>

View file

@ -65,3 +65,4 @@ V64__transfer_history_columns.sql
V65__local_date_date_type.sql
V66__create_rde_revision.sql
V67__grace_period_history_ids.sql
V68__make_reserved_list_nullable_in_registry.sql

View file

@ -0,0 +1,15 @@
-- Copyright 2020 The Nomulus Authors. All Rights Reserved.
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
ALTER TABLE "Tld" ALTER COLUMN reserved_list_names DROP NOT NULL;

View file

@ -646,7 +646,7 @@
registry_lock_or_unlock_cost_currency text,
renew_billing_cost_transitions hstore not null,
renew_grace_period_length interval not null,
reserved_list_names text[] not null,
reserved_list_names text[],
restore_billing_cost_amount numeric(19, 2),
restore_billing_cost_currency text,
roid_suffix text,

View file

@ -904,7 +904,7 @@ CREATE TABLE public."Tld" (
registry_lock_or_unlock_cost_currency text,
renew_billing_cost_transitions public.hstore NOT NULL,
renew_grace_period_length interval NOT NULL,
reserved_list_names text[] NOT NULL,
reserved_list_names text[],
restore_billing_cost_amount numeric(19,2),
restore_billing_cost_currency text,
roid_suffix text,