[jOOQ/jOOQ#8739] Support ALTER SCHEMA in H2

This commit is contained in:
Knut Wannheden 2019-06-05 16:16:34 +02:00
parent 2765329af3
commit b1bebfbb0e
3 changed files with 16 additions and 15 deletions

View File

@ -38,6 +38,7 @@
package org.jooq;
// ...
import static org.jooq.SQLDialect.H2;
import static org.jooq.SQLDialect.HSQLDB;
import static org.jooq.SQLDialect.POSTGRES;
// ...
@ -72,21 +73,21 @@ public interface AlterSchemaStep {
* Add a <code>RENAME TO</code> clause to the <code>ALTER SCHEMA</code>
* statement.
*/
@Support({ HSQLDB, POSTGRES })
@Support({ H2, HSQLDB, POSTGRES })
AlterSchemaFinalStep renameTo(Schema newName);
/**
* Add a <code>RENAME TO</code> clause to the <code>ALTER SCHEMA</code>
* statement.
*/
@Support({ HSQLDB, POSTGRES })
@Support({ H2, HSQLDB, POSTGRES })
AlterSchemaFinalStep renameTo(Name newName);
/**
* Add a <code>RENAME TO</code> clause to the <code>ALTER SCHEMA</code>
* statement.
*/
@Support({ HSQLDB, POSTGRES })
@Support({ H2, HSQLDB, POSTGRES })
AlterSchemaFinalStep renameTo(String newName);
}

View File

@ -9352,7 +9352,7 @@ public interface DSLContext extends Scope , AutoCloseable {
*
* @see DSL#alterSchema(String)
*/
@Support({ HSQLDB, POSTGRES })
@Support({ H2, HSQLDB, POSTGRES })
AlterSchemaStep alterSchema(String schema);
/**
@ -9360,7 +9360,7 @@ public interface DSLContext extends Scope , AutoCloseable {
*
* @see DSL#alterSchema(Name)
*/
@Support({ HSQLDB, POSTGRES })
@Support({ H2, HSQLDB, POSTGRES })
AlterSchemaStep alterSchema(Name schema);
/**
@ -9368,7 +9368,7 @@ public interface DSLContext extends Scope , AutoCloseable {
*
* @see DSL#alterSchema(Schema)
*/
@Support({ HSQLDB, POSTGRES })
@Support({ H2, HSQLDB, POSTGRES })
AlterSchemaStep alterSchema(Schema schema);
/**
@ -9376,7 +9376,7 @@ public interface DSLContext extends Scope , AutoCloseable {
*
* @see DSL#alterSchemaIfExists(String)
*/
@Support({ POSTGRES })
@Support({ H2, POSTGRES })
AlterSchemaStep alterSchemaIfExists(String schema);
/**
@ -9384,7 +9384,7 @@ public interface DSLContext extends Scope , AutoCloseable {
*
* @see DSL#alterSchemaIfExists(Name)
*/
@Support({ POSTGRES })
@Support({ H2, POSTGRES })
AlterSchemaStep alterSchemaIfExists(Name schema);
/**
@ -9392,7 +9392,7 @@ public interface DSLContext extends Scope , AutoCloseable {
*
* @see DSL#alterSchemaIfExists(Schema)
*/
@Support({ POSTGRES })
@Support({ H2, POSTGRES })
AlterSchemaStep alterSchemaIfExists(Schema schema);
/**

View File

@ -7410,7 +7410,7 @@ public class DSL {
*
* @see DSLContext#alterSchema(String)
*/
@Support({ HSQLDB, POSTGRES })
@Support({ H2, HSQLDB, POSTGRES })
public static AlterSchemaStep alterSchema(String schema) {
return dsl().alterSchema(schema);
}
@ -7420,7 +7420,7 @@ public class DSL {
*
* @see DSLContext#alterSchema(Name)
*/
@Support({ HSQLDB, POSTGRES })
@Support({ H2, HSQLDB, POSTGRES })
public static AlterSchemaStep alterSchema(Name schema) {
return dsl().alterSchema(schema);
}
@ -7430,7 +7430,7 @@ public class DSL {
*
* @see DSLContext#alterSchema(Schema)
*/
@Support({ HSQLDB, POSTGRES })
@Support({ H2, HSQLDB, POSTGRES })
public static AlterSchemaStep alterSchema(Schema schema) {
return dsl().alterSchema(schema);
}
@ -7440,7 +7440,7 @@ public class DSL {
*
* @see DSLContext#alterSchemaIfExists(String)
*/
@Support({ POSTGRES })
@Support({ H2, POSTGRES })
public static AlterSchemaStep alterSchemaIfExists(String schema) {
return dsl().alterSchemaIfExists(schema);
}
@ -7450,7 +7450,7 @@ public class DSL {
*
* @see DSLContext#alterSchemaIfExists(Name)
*/
@Support({ POSTGRES })
@Support({ H2, POSTGRES })
public static AlterSchemaStep alterSchemaIfExists(Name schema) {
return dsl().alterSchemaIfExists(schema);
}
@ -7460,7 +7460,7 @@ public class DSL {
*
* @see DSLContext#alterSchemaIfExists(Schema)
*/
@Support({ POSTGRES })
@Support({ H2, POSTGRES })
public static AlterSchemaStep alterSchemaIfExists(Schema schema) {
return dsl().alterSchemaIfExists(schema);
}