Skip to content

Commit

Permalink
[backend] Add index for expectations on inject
Browse files Browse the repository at this point in the history
  • Loading branch information
savacano28 committed Oct 17, 2024
1 parent 061cabe commit c5e3ebb
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package io.openbas.migration;

import org.flywaydb.core.api.migration.BaseJavaMigration;
import org.flywaydb.core.api.migration.Context;
import org.springframework.stereotype.Component;

import java.sql.Connection;
import java.sql.Statement;

@Component
public class V3_45__Add_indexes_scenario_exercise_latency extends BaseJavaMigration {
@Override
public void migrate(Context context) throws Exception {
Connection connection = context.getConnection();
Statement select = connection.createStatement();
select.execute("CREATE INDEX IF NOT EXISTS idx_inject_expectation_inject_id ON injects_expectations(inject_id);");
}
}

0 comments on commit c5e3ebb

Please sign in to comment.