Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Replace Strings class with String class
  • Loading branch information
x7airworker committed Mar 31, 2023
commit a025318f1780b31013cb902389731dec807d081d
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.javawebstack.orm.migration;

import jdk.internal.joptsimple.internal.Strings;
import org.javawebstack.orm.Repo;
import org.javawebstack.orm.TableInfo;
import org.javawebstack.orm.annotation.Index;
Expand Down Expand Up @@ -129,7 +128,7 @@ private static void migrateTable(SQL sql, TableInfo info, boolean tableExists) {
List<String> existingIndices = getIndices(sql, info.getTableName());
for (Index index : info.getIndices()) {
String columns = Stream.of(index.value()).map(info::getColumnName).collect(Collectors.joining(","));
String id = index.id().length() > 0 ? index.id() : "idx_" + Strings.join(index.value(), "_");
String id = index.id().length() > 0 ? index.id() : "idx_" + String.join("_", index.value());
if (existingIndices.contains(id))
continue;

Expand Down