Add Java changes for new breakglass_mode column on Tld (#2053)

* Add Java changes for new breakglass_mode column on Tld

* Add generated sql schema
This commit is contained in:
sarahcaseybot 2023-06-22 12:55:42 -04:00 committed by GitHub
parent 6b54b69163
commit cf1a148208
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View file

@ -475,6 +475,9 @@ public class Tld extends ImmutableObject implements Buildable, UnsafeSerializabl
/** An allowlist of hosts allowed to be used on domains on this TLD (ignored if empty). */
@Nullable Set<String> allowedFullyQualifiedHostNames;
@Column(nullable = false)
boolean breakglassMode = false;
/**
* References to allocation tokens that can be used on the TLD if no other token is passed in on a
* domain create.
@ -701,6 +704,10 @@ public class Tld extends ImmutableObject implements Buildable, UnsafeSerializabl
return nullToEmptyImmutableCopy(idnTables);
}
public boolean getBreakglassMode() {
return breakglassMode;
}
@Override
public Builder asBuilder() {
return new Builder(clone(this));
@ -1004,6 +1011,11 @@ public class Tld extends ImmutableObject implements Buildable, UnsafeSerializabl
return this;
}
public Builder setBreakglassMode(boolean breakglassMode) {
getInstance().breakglassMode = breakglassMode;
return this;
}
@Override
public Tld build() {
final Tld instance = getInstance();

View file

@ -704,6 +704,7 @@
anchor_tenant_add_grace_period_length interval not null,
auto_renew_grace_period_length interval not null,
automatic_transfer_length interval not null,
breakglass_mode boolean not null,
claims_period_end timestamptz not null,
create_billing_cost_amount numeric(19, 2),
create_billing_cost_currency text,