public class V20211221144300_GeoIpResolverConfigMigration extends Migration
This update writes a completion status record upon initial successful migration, and checks for presence of such record before stating any subsequent migration--aborts if record found.
| Modifier and Type | Class and Description |
|---|---|
static class |
V20211221144300_GeoIpResolverConfigMigration.MigrationCompletion |
| Constructor and Description |
|---|
V20211221144300_GeoIpResolverConfigMigration(MongoConnection mongoConnection,
ClusterConfigService clusterConfigService) |
| Modifier and Type | Method and Description |
|---|---|
ZonedDateTime |
createdAt() |
void |
upgrade()
This code change modifies
GeoIpResolverConfig by removing the field db_type and adding the field database_vendor_type. |
public static final String PAYLOAD
@Inject public V20211221144300_GeoIpResolverConfigMigration(MongoConnection mongoConnection, ClusterConfigService clusterConfigService)
public ZonedDateTime createdAt()
public void upgrade()
GeoIpResolverConfig by removing the field db_type and adding the field database_vendor_type.
The objective of this migration is to add the new field (with value DatabaseVendorType.MAXMIND) if not already present, and to remove the old field.
Copyright © 2012–2022 Graylog, Inc.. All rights reserved.