diff --git a/core/src/main/java/google/registry/model/registry/Registry.java b/core/src/main/java/google/registry/model/registry/Registry.java index dab5f7499..605dc2fa4 100644 --- a/core/src/main/java/google/registry/model/registry/Registry.java +++ b/core/src/main/java/google/registry/model/registry/Registry.java @@ -480,6 +480,14 @@ public class Registry extends ImmutableObject implements Buildable { Money serverStatusChangeBillingCost = DEFAULT_SERVER_STATUS_CHANGE_BILLING_COST; /** The one-time billing cost for a registry lock/unlock action initiated by a registrar. */ + @AttributeOverrides({ + @AttributeOverride( + name = "money.amount", + column = @Column(name = "registry_lock_or_unlock_cost_amount")), + @AttributeOverride( + name = "money.currency", + column = @Column(name = "registry_lock_or_unlock_cost_currency")) + }) Money registryLockOrUnlockBillingCost = DEFAULT_REGISTRY_LOCK_OR_UNLOCK_BILLING_COST; /** diff --git a/db/src/main/resources/sql/flyway/V54__add_tld_table.sql b/db/src/main/resources/sql/flyway/V54__add_tld_table.sql index 3f7c83107..20786b700 100644 --- a/db/src/main/resources/sql/flyway/V54__add_tld_table.sql +++ b/db/src/main/resources/sql/flyway/V54__add_tld_table.sql @@ -37,6 +37,8 @@ premium_list_name text, pricing_engine_class_name text, redemption_grace_period_length interval not null, + registry_lock_or_unlock_cost_amount numeric(19, 2), + 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, diff --git a/db/src/main/resources/sql/schema/db-schema.sql.generated b/db/src/main/resources/sql/schema/db-schema.sql.generated index a88c10950..9d6c8e990 100644 --- a/db/src/main/resources/sql/schema/db-schema.sql.generated +++ b/db/src/main/resources/sql/schema/db-schema.sql.generated @@ -605,6 +605,8 @@ create sequence temp_history_id_sequence start 1 increment 50; premium_list_name text, pricing_engine_class_name text, redemption_grace_period_length interval not null, + registry_lock_or_unlock_cost_amount numeric(19, 2), + 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, diff --git a/db/src/main/resources/sql/schema/nomulus.golden.sql b/db/src/main/resources/sql/schema/nomulus.golden.sql index 11c06f397..fb10bac42 100644 --- a/db/src/main/resources/sql/schema/nomulus.golden.sql +++ b/db/src/main/resources/sql/schema/nomulus.golden.sql @@ -918,6 +918,8 @@ CREATE TABLE public."Tld" ( premium_list_name text, pricing_engine_class_name text, redemption_grace_period_length interval NOT NULL, + registry_lock_or_unlock_cost_amount numeric(19,2), + 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,