org.graylog2.migrations.MigrationsModule Maven / Gradle / Ivy
/*
* Copyright (C) 2020 Graylog, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* Server Side Public License for more details.
*
* You should have received a copy of the Server Side Public License
* along with this program. If not, see
* .
*/
package org.graylog2.migrations;
import com.google.inject.multibindings.Multibinder;
import org.graylog2.migrations.V20180214093600_AdjustDashboardPositionToNewResolution.Migration;
import org.graylog2.migrations.V20200803120800_GrantsMigrations.GrantsMetaMigration;
import org.graylog2.plugin.PluginModule;
public class MigrationsModule extends PluginModule {
@Override
protected void configure() {
// The LegacyAuthServiceMigration is pluggable. This call ensures that there is always a binder present
// even if there are no plugins registered for this migration.
Multibinder.newSetBinder(binder(), V20201103145400_LegacyAuthServiceMigration.MigrationModule.class);
addMigration(V20151210140600_ElasticsearchConfigMigration.class);
addMigration(V20161116172100_DefaultIndexSetMigration.class);
addMigration(V20161116172200_CreateDefaultStreamMigration.class);
addMigration(V20161122174500_AssignIndexSetsToStreamsMigration.class);
addMigration(V20161124104700_AddRetentionRotationAndDefaultFlagToIndexSetMigration.class);
addMigration(V20161125142400_EmailAlarmCallbackMigration.class);
addMigration(V20161125161400_AlertReceiversMigration.class);
addMigration(V20161215163900_MoveIndexSetDefaultConfig.class);
addMigration(V20161216123500_DefaultIndexSetMigration.class);
addMigration(V20170110150100_FixAlertConditionsMigration.class);
addMigration(V20170607164210_MigrateReopenedIndicesToAliases.class);
addMigration(Migration.class);
addMigration(V2018070614390000_EnforceUniqueGrokPatterns.class);
addMigration(V20180718155800_AddContentPackIdAndRev.class);
addMigration(V20180924111644_AddDefaultGrokPatterns.class);
addMigration(V20190705071400_AddEventIndexSetsMigration.class);
addMigration(V20190730100900_AddAlertsManagerRole.class);
addMigration(V20190730000000_CreateDefaultEventsConfiguration.class);
addMigration(V20191121145100_FixDefaultGrokPatterns.class);
addMigration(V20191129134600_CreateInitialUrlWhitelist.class);
addMigration(V20191219090834_AddSourcesPage.class);
addMigration(V20200102140000_UnifyEventSeriesId.class);
addMigration(V20200226181600_EncryptAccessTokensMigration.class);
addMigration(V20200722110800_AddBuiltinRoles.class);
addMigration(GrantsMetaMigration.class);
addMigration(V20201103145400_LegacyAuthServiceMigration.class);
addMigration(V20211221144300_GeoIpResolverConfigMigration.class);
}
}