mirror of
https://github.com/google/nomulus.git
synced 2025-05-14 08:27:14 +02:00
Remove the scrap AllocationToken command and OnLoad method
I have resaved all the tokens and verified in BigQuery that there are no remaining null tokenTypes. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=247425132
This commit is contained in:
parent
5bb93e9e4a
commit
aa83472393
3 changed files with 0 additions and 54 deletions
|
@ -35,7 +35,6 @@ import com.googlecode.objectify.annotation.Entity;
|
|||
import com.googlecode.objectify.annotation.Id;
|
||||
import com.googlecode.objectify.annotation.Index;
|
||||
import com.googlecode.objectify.annotation.Mapify;
|
||||
import com.googlecode.objectify.annotation.OnLoad;
|
||||
import google.registry.model.BackupGroupRoot;
|
||||
import google.registry.model.Buildable;
|
||||
import google.registry.model.CreateAutoTimestamp;
|
||||
|
@ -118,14 +117,6 @@ public class AllocationToken extends BackupGroupRoot implements Buildable {
|
|||
TimedTransitionProperty<TokenStatus, TokenStatusTransition> tokenStatusTransitions =
|
||||
TimedTransitionProperty.forMapify(NOT_STARTED, TokenStatusTransition.class);
|
||||
|
||||
// TODO(b/130301183): Remove this after loading/saving all token entities
|
||||
@OnLoad
|
||||
void onLoad() {
|
||||
if (tokenType == null) {
|
||||
tokenType = TokenType.SINGLE_USE;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A transition to a given token status at a specific time, for use in a TimedTransitionProperty.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue