Skip to content

Commit

Permalink
fix: queries
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc committed Nov 6, 2023
1 parent 6c1283d commit e3d0284
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,12 @@ public static String getQueryToCreateDefaultRequiredFactorIdsTable(Start start)
}

public static String getQueryToCreateOrderIndexForDefaultRequiredFactorIdsTable(Start start) {
return "CREATE INDEX IF NOT EXISTS tenant_default_required_factor_ids_tenant_id_index ON "
return "CREATE INDEX tenant_default_required_factor_ids_order_idx_index ON "
+ getConfig(start).getTenantDefaultRequiredFactorIdsTable() + " (order_idx ASC);";
}

private static void executeCreateTenantQueries(Start start, Connection sqlCon, TenantConfig tenantConfig)
throws SQLException, StorageTransactionLogicException {
throws SQLException, StorageTransactionLogicException, StorageQueryException {

try {
TenantConfigSQLHelper.create(start, sqlCon, tenantConfig);
Expand Down Expand Up @@ -184,6 +184,9 @@ private static void executeCreateTenantQueries(Start start, Connection sqlCon, T
}
}
}

MfaSqlHelper.createFirstFactors(start, sqlCon, tenantConfig.tenantIdentifier, tenantConfig.firstFactors);
MfaSqlHelper.createDefaultRequiredFactorIds(start, sqlCon, tenantConfig.tenantIdentifier, tenantConfig.defaultRequiredFactorIds);
}

public static void createTenantConfig(Start start, TenantConfig tenantConfig) throws StorageQueryException, StorageTransactionLogicException {
Expand Down

0 comments on commit e3d0284

Please sign in to comment.