Skip to content

Commit

Permalink
fix ::
Browse files Browse the repository at this point in the history
  • Loading branch information
BLoHny committed May 23, 2024
1 parent f952879 commit 50d638b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import io.github.mfvanek.pg.checks.host.IntersectedIndexesCheckOnHost;
import io.github.mfvanek.pg.checks.host.InvalidIndexesCheckOnHost;
import io.github.mfvanek.pg.checks.host.NotValidConstraintsCheckOnHost;
import io.github.mfvanek.pg.checks.host.SequenceOverflowCheckHost;
import io.github.mfvanek.pg.checks.host.TablesWithBloatCheckOnHost;
import io.github.mfvanek.pg.checks.host.TablesWithMissingIndexesCheckOnHost;
import io.github.mfvanek.pg.checks.host.TablesWithoutDescriptionCheckOnHost;
Expand Down Expand Up @@ -239,6 +240,14 @@ public BtreeIndexesOnArrayColumnsCheckOnHost btreeIndexesOnArrayColumnsCheckOnHo
return new BtreeIndexesOnArrayColumnsCheckOnHost(pgConnection);
}

@Bean
@ConditionalOnClass(SequenceOverflowCheckHost.class)
@ConditionalOnBean(PgConnection.class)
@ConditionalOnMissingBean
public SequenceOverflowCheckHost sequenceOverflowCheckHost(final PgConnection pgConnection) {
return new SequenceOverflowCheckHost(pgConnection);
}

@Bean
@ConditionalOnClass(StatisticsMaintenanceOnHost.class)
@ConditionalOnBean(PgConnection.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ abstract class AutoConfigurationTestBase {
"btreeIndexesOnArrayColumnsCheckOnHost",
"statisticsMaintenanceOnHost",
"configurationMaintenanceOnHost",
"sequenceOverflow"
"sequenceOverflowCheckHost"
);
protected static final Class<?>[] EXPECTED_TYPES = {PgConnection.class, DatabaseCheckOnHost.class, StatisticsMaintenanceOnHost.class, ConfigurationMaintenanceOnHost.class};
protected static final DataSource DATA_SOURCE_MOCK = Mockito.mock(DataSource.class);
Expand Down

0 comments on commit 50d638b

Please sign in to comment.