1
0
mirror of https://github.com/google/nomulus synced 2026-02-07 21:41:03 +00:00

Add renewalPrice fields to AllocationToken in SQL (#2462)

This is an optional field (will be required when the renewal price
behavior is SPECIFIED). This will allow us to set arbitrary renewal
prices for domains as part of one-off negotiations.

https://b.corp.google.com/issues/332928676
This commit is contained in:
gbrodman
2024-06-03 15:50:58 -04:00
committed by GitHub
parent e99a18f54f
commit 61eee45ad0
5 changed files with 1660 additions and 1625 deletions

View File

@@ -261,11 +261,11 @@ td.section {
</tr>
<tr>
<td class="property_name">generated on</td>
<td class="property_value">2024-05-10 19:17:39.481284329</td>
<td class="property_value">2024-05-30 20:54:05.059075326</td>
</tr>
<tr>
<td class="property_name">last flyway file</td>
<td id="lastFlywayFile" class="property_value">V171__drop_create_billing_cost_columns_from_tld.sql</td>
<td id="lastFlywayFile" class="property_value">V172__allocation_token_renewal_price.sql</td>
</tr>
</tbody>
</table>
@@ -280,7 +280,7 @@ td.section {
<text text-anchor="start" x="3730.5" y="-29.8" font-family="Helvetica,sans-Serif" font-size="14.00">generated by</text>
<text text-anchor="start" x="3813.5" y="-29.8" font-family="Helvetica,sans-Serif" font-size="14.00">SchemaCrawler 16.10.1</text>
<text text-anchor="start" x="3729.5" y="-10.8" font-family="Helvetica,sans-Serif" font-size="14.00">generated on</text>
<text text-anchor="start" x="3813.5" y="-10.8" font-family="Helvetica,sans-Serif" font-size="14.00">2024-05-10 19:17:39.481284329</text>
<text text-anchor="start" x="3813.5" y="-10.8" font-family="Helvetica,sans-Serif" font-size="14.00">2024-05-30 20:54:05.059075326</text>
<polygon fill="none" stroke="#888888" points="3726,-4 3726,-44 4013,-44 4013,-4 3726,-4" /> <!-- allocationtoken_a08ccbef -->
<g id="node1" class="node">
<title>

File diff suppressed because it is too large Load Diff

View File

@@ -169,3 +169,4 @@ V168__registry_lock_email.sql
V169__add_more_indexes_needed_for_delete_prober_data.sql
V170__user_update_registry_lock_email.sql
V171__drop_create_billing_cost_columns_from_tld.sql
V172__allocation_token_renewal_price.sql

View File

@@ -0,0 +1,16 @@
-- Copyright 2024 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 "AllocationToken" ADD COLUMN renewal_price_amount numeric(19, 2);
ALTER TABLE "AllocationToken" ADD COLUMN renewal_price_currency text;

View File

@@ -54,7 +54,9 @@ CREATE TABLE public."AllocationToken" (
redemption_domain_history_id bigint,
renewal_price_behavior text DEFAULT 'DEFAULT'::text NOT NULL,
registration_behavior text DEFAULT 'DEFAULT'::text NOT NULL,
allowed_epp_actions text[]
allowed_epp_actions text[],
renewal_price_amount numeric(19,2),
renewal_price_currency text
);