diff --git a/jOOQ/src/main/java/org/jooq/AlterIndexStep.java b/jOOQ/src/main/java/org/jooq/AlterIndexStep.java
index 64dd3f1f1d..fcf1d0af13 100644
--- a/jOOQ/src/main/java/org/jooq/AlterIndexStep.java
+++ b/jOOQ/src/main/java/org/jooq/AlterIndexStep.java
@@ -40,6 +40,7 @@
*/
package org.jooq;
+import static org.jooq.SQLDialect.H2;
import static org.jooq.SQLDialect.POSTGRES;
/**
@@ -53,13 +54,13 @@ public interface AlterIndexStep {
* Add a RENAME TO clause to the ALTER INDEX
* statement.
*/
- @Support({ POSTGRES })
+ @Support({ H2, POSTGRES })
AlterIndexFinalStep renameTo(Name newName);
/**
* Add a RENAME TO clause to the ALTER INDEX
* statement.
*/
- @Support({ POSTGRES })
+ @Support({ H2, POSTGRES })
AlterIndexFinalStep renameTo(String newName);
}
diff --git a/jOOQ/src/main/java/org/jooq/DSLContext.java b/jOOQ/src/main/java/org/jooq/DSLContext.java
index bd427f1f78..9593265ab7 100644
--- a/jOOQ/src/main/java/org/jooq/DSLContext.java
+++ b/jOOQ/src/main/java/org/jooq/DSLContext.java
@@ -7873,7 +7873,7 @@ public interface DSLContext extends Scope , AutoCloseable {
*
* @see DSL#alterIndex(String)
*/
- @Support({ POSTGRES })
+ @Support({ H2, POSTGRES })
AlterIndexStep alterIndex(String index);
/**
@@ -7881,7 +7881,7 @@ public interface DSLContext extends Scope , AutoCloseable {
*
* @see DSL#alterIndex(Name)
*/
- @Support({ POSTGRES })
+ @Support({ H2, POSTGRES })
AlterIndexStep alterIndex(Name index);
/**
@@ -7889,7 +7889,7 @@ public interface DSLContext extends Scope , AutoCloseable {
*
* @see DSL#alterIndexIfExists(String)
*/
- @Support({ POSTGRES })
+ @Support({ H2, POSTGRES })
AlterIndexStep alterIndexIfExists(String index);
/**
@@ -7897,7 +7897,7 @@ public interface DSLContext extends Scope , AutoCloseable {
*
* @see DSL#alterIndexIfExists(Name)
*/
- @Support({ POSTGRES })
+ @Support({ H2, POSTGRES })
AlterIndexStep alterIndexIfExists(Name index);
/**
diff --git a/jOOQ/src/main/java/org/jooq/impl/DSL.java b/jOOQ/src/main/java/org/jooq/impl/DSL.java
index 1558faa8b9..ca812af74c 100644
--- a/jOOQ/src/main/java/org/jooq/impl/DSL.java
+++ b/jOOQ/src/main/java/org/jooq/impl/DSL.java
@@ -6091,7 +6091,7 @@ public class DSL {
*
* @see DSLContext#alterIndex(String)
*/
- @Support({ POSTGRES })
+ @Support({ H2, POSTGRES })
public static AlterIndexStep alterIndex(String index) {
return using(new DefaultConfiguration()).alterIndex(index);
}
@@ -6101,7 +6101,7 @@ public class DSL {
*
* @see DSLContext#alterIndex(Name)
*/
- @Support({ POSTGRES })
+ @Support({ H2, POSTGRES })
public static AlterIndexStep alterIndex(Name index) {
return using(new DefaultConfiguration()).alterIndex(index);
}
@@ -6111,7 +6111,7 @@ public class DSL {
*
* @see DSLContext#alterIndexIfExists(String)
*/
- @Support({ POSTGRES })
+ @Support({ H2, POSTGRES })
public static AlterIndexStep alterIndexIfExists(String index) {
return using(new DefaultConfiguration()).alterIndexIfExists(index);
}
@@ -6121,7 +6121,7 @@ public class DSL {
*
* @see DSLContext#alterIndexIfExists(Name)
*/
- @Support({ POSTGRES })
+ @Support({ H2, POSTGRES })
public static AlterIndexStep alterIndexIfExists(Name index) {
return using(new DefaultConfiguration()).alterIndexIfExists(index);
}