[jOOQ/jOOQ#10210] Re-generate AlterDatabaseImpl

This commit is contained in:
Lukas Eder 2020-05-27 19:12:00 +02:00
parent 7ad7b46fce
commit fe43228433
8 changed files with 255 additions and 254 deletions

View File

@ -37,8 +37,12 @@
*/
package org.jooq;
import static org.jooq.SQLDialect.*;
import java.util.*;
/**
* The final step in the <code>DROP SCHEMA</code> DSL.
* A step in the construction of the ALTER DATABASE statement.
* <p>
* <h3>Referencing <code>XYZ*Step</code> types directly from client code</h3>
* <p>
@ -57,9 +61,7 @@ package org.jooq;
* <li>They're less readable</li>
* <li>They might have binary incompatible changes between minor releases</li>
* </ul>
*
* @author Lukas Eder
*/
@SuppressWarnings({ "unused" })
public interface AlterDatabaseFinalStep extends DDLQuery {
}

View File

@ -37,13 +37,12 @@
*/
package org.jooq;
// ...
// ...
import static org.jooq.SQLDialect.POSTGRES;
import static org.jooq.SQLDialect.*;
import java.util.*;
/**
* The step in the <code>ALTER DATABASE</code> DSL used to specify
* <code>ALTER</code> behaviour.
* A step in the construction of the ALTER DATABASE statement.
* <p>
* <h3>Referencing <code>XYZ*Step</code> types directly from client code</h3>
* <p>
@ -62,30 +61,25 @@ import static org.jooq.SQLDialect.POSTGRES;
* <li>They're less readable</li>
* <li>They might have binary incompatible changes between minor releases</li>
* </ul>
*
* @author Lukas Eder
*/
@SuppressWarnings({ "unused" })
public interface AlterDatabaseStep {
/**
* Add a <code>RENAME TO</code> clause to the <code>ALTER DATABASE</code>
* statement.
* Add the <code>RENAME TO</code> clause to the <code>ALTER DATABASE</code> statement.
*/
@Support({ POSTGRES })
AlterDatabaseFinalStep renameTo(Catalog newName);
AlterDatabaseFinalStep renameTo(String renameTo);
/**
* Add a <code>RENAME TO</code> clause to the <code>ALTER DATABASE</code>
* statement.
* Add the <code>RENAME TO</code> clause to the <code>ALTER DATABASE</code> statement.
*/
@Support({ POSTGRES })
AlterDatabaseFinalStep renameTo(Name newName);
AlterDatabaseFinalStep renameTo(Name renameTo);
/**
* Add a <code>RENAME TO</code> clause to the <code>ALTER DATABASE</code>
* statement.
* Add the <code>RENAME TO</code> clause to the <code>ALTER DATABASE</code> statement.
*/
@Support({ POSTGRES })
AlterDatabaseFinalStep renameTo(String newName);
AlterDatabaseFinalStep renameTo(Catalog renameTo);
}

View File

@ -72,121 +72,121 @@ public interface AlterDomainStep<T> {
AlterDomainFinalStep add(Constraint addConstraint);
/**
* Add the <code>DROPDEFAULT</code> clause to the <code>ALTER DOMAIN</code> statement.
* Add the <code>DROP DEFAULT</code> clause to the <code>ALTER DOMAIN</code> statement.
*/
@Support({ POSTGRES })
AlterDomainFinalStep dropDefault();
/**
* Add the <code>SETNOTNULL</code> clause to the <code>ALTER DOMAIN</code> statement.
* Add the <code>SET NOT NULL</code> clause to the <code>ALTER DOMAIN</code> statement.
*/
@Support({ POSTGRES })
AlterDomainFinalStep setNotNull();
/**
* Add the <code>DROPNOTNULL</code> clause to the <code>ALTER DOMAIN</code> statement.
* Add the <code>DROP NOT NULL</code> clause to the <code>ALTER DOMAIN</code> statement.
*/
@Support({ POSTGRES })
AlterDomainFinalStep dropNotNull();
/**
* Add the <code>DROPCONSTRAINT</code> clause to the <code>ALTER DOMAIN</code> statement.
* Add the <code>DROP CONSTRAINT</code> clause to the <code>ALTER DOMAIN</code> statement.
*/
@Support({ POSTGRES })
AlterDomainDropConstraintCascadeStep dropConstraint(String dropConstraint);
/**
* Add the <code>DROPCONSTRAINT</code> clause to the <code>ALTER DOMAIN</code> statement.
* Add the <code>DROP CONSTRAINT</code> clause to the <code>ALTER DOMAIN</code> statement.
*/
@Support({ POSTGRES })
AlterDomainDropConstraintCascadeStep dropConstraint(Name dropConstraint);
/**
* Add the <code>DROPCONSTRAINT</code> clause to the <code>ALTER DOMAIN</code> statement.
* Add the <code>DROP CONSTRAINT</code> clause to the <code>ALTER DOMAIN</code> statement.
*/
@Support({ POSTGRES })
AlterDomainDropConstraintCascadeStep dropConstraint(Constraint dropConstraint);
/**
* Add the <code>DROPCONSTRAINTIFEXISTS</code> clause to the <code>ALTER DOMAIN</code> statement.
* Add the <code>DROP CONSTRAINT IF EXISTS</code> clause to the <code>ALTER DOMAIN</code> statement.
*/
@Support({ POSTGRES })
AlterDomainDropConstraintCascadeStep dropConstraintIfExists(String dropConstraint);
/**
* Add the <code>DROPCONSTRAINTIFEXISTS</code> clause to the <code>ALTER DOMAIN</code> statement.
* Add the <code>DROP CONSTRAINT IF EXISTS</code> clause to the <code>ALTER DOMAIN</code> statement.
*/
@Support({ POSTGRES })
AlterDomainDropConstraintCascadeStep dropConstraintIfExists(Name dropConstraint);
/**
* Add the <code>DROPCONSTRAINTIFEXISTS</code> clause to the <code>ALTER DOMAIN</code> statement.
* Add the <code>DROP CONSTRAINT IF EXISTS</code> clause to the <code>ALTER DOMAIN</code> statement.
*/
@Support({ POSTGRES })
AlterDomainDropConstraintCascadeStep dropConstraintIfExists(Constraint dropConstraint);
/**
* Add the <code>RENAMETO</code> clause to the <code>ALTER DOMAIN</code> statement.
* Add the <code>RENAME TO</code> clause to the <code>ALTER DOMAIN</code> statement.
*/
@Support({ POSTGRES })
AlterDomainFinalStep renameTo(String renameTo);
/**
* Add the <code>RENAMETO</code> clause to the <code>ALTER DOMAIN</code> statement.
* Add the <code>RENAME TO</code> clause to the <code>ALTER DOMAIN</code> statement.
*/
@Support({ POSTGRES })
AlterDomainFinalStep renameTo(Name renameTo);
/**
* Add the <code>RENAMETO</code> clause to the <code>ALTER DOMAIN</code> statement.
* Add the <code>RENAME TO</code> clause to the <code>ALTER DOMAIN</code> statement.
*/
@Support({ POSTGRES })
AlterDomainFinalStep renameTo(Domain<?> renameTo);
/**
* Add the <code>RENAMECONSTRAINT</code> clause to the <code>ALTER DOMAIN</code> statement.
* Add the <code>RENAME CONSTRAINT</code> clause to the <code>ALTER DOMAIN</code> statement.
*/
@Support({ POSTGRES })
AlterDomainRenameConstraintStep renameConstraint(String renameConstraint);
/**
* Add the <code>RENAMECONSTRAINT</code> clause to the <code>ALTER DOMAIN</code> statement.
* Add the <code>RENAME CONSTRAINT</code> clause to the <code>ALTER DOMAIN</code> statement.
*/
@Support({ POSTGRES })
AlterDomainRenameConstraintStep renameConstraint(Name renameConstraint);
/**
* Add the <code>RENAMECONSTRAINT</code> clause to the <code>ALTER DOMAIN</code> statement.
* Add the <code>RENAME CONSTRAINT</code> clause to the <code>ALTER DOMAIN</code> statement.
*/
@Support({ POSTGRES })
AlterDomainRenameConstraintStep renameConstraint(Constraint renameConstraint);
/**
* Add the <code>RENAMECONSTRAINTIFEXISTS</code> clause to the <code>ALTER DOMAIN</code> statement.
* Add the <code>RENAME CONSTRAINT IF EXISTS</code> clause to the <code>ALTER DOMAIN</code> statement.
*/
@Support({ POSTGRES })
AlterDomainRenameConstraintStep renameConstraintIfExists(String renameConstraint);
/**
* Add the <code>RENAMECONSTRAINTIFEXISTS</code> clause to the <code>ALTER DOMAIN</code> statement.
* Add the <code>RENAME CONSTRAINT IF EXISTS</code> clause to the <code>ALTER DOMAIN</code> statement.
*/
@Support({ POSTGRES })
AlterDomainRenameConstraintStep renameConstraintIfExists(Name renameConstraint);
/**
* Add the <code>RENAMECONSTRAINTIFEXISTS</code> clause to the <code>ALTER DOMAIN</code> statement.
* Add the <code>RENAME CONSTRAINT IF EXISTS</code> clause to the <code>ALTER DOMAIN</code> statement.
*/
@Support({ POSTGRES })
AlterDomainRenameConstraintStep renameConstraintIfExists(Constraint renameConstraint);
/**
* Add the <code>SETDEFAULT</code> clause to the <code>ALTER DOMAIN</code> statement.
* Add the <code>SET DEFAULT</code> clause to the <code>ALTER DOMAIN</code> statement.
*/
@Support({ POSTGRES })
AlterDomainFinalStep setDefault(T setDefault);
/**
* Add the <code>SETDEFAULT</code> clause to the <code>ALTER DOMAIN</code> statement.
* Add the <code>SET DEFAULT</code> clause to the <code>ALTER DOMAIN</code> statement.
*/
@Support({ POSTGRES })
AlterDomainFinalStep setDefault(Field<T> setDefault);

View File

@ -66,13 +66,13 @@ import java.util.*;
public interface CreateDomainAsStep {
/**
* Add the <code>AS[T]</code> clause to the <code>CREATE DOMAIN</code> statement.
* Add the <code>AS</code> clause to the <code>CREATE DOMAIN</code> statement.
*/
@Support({ H2, POSTGRES })
<T> CreateDomainDefaultStep<T> as(Class<T> dataType);
/**
* Add the <code>AS[T]</code> clause to the <code>CREATE DOMAIN</code> statement.
* Add the <code>AS</code> clause to the <code>CREATE DOMAIN</code> statement.
*/
@Support({ H2, POSTGRES })
<T> CreateDomainDefaultStep<T> as(DataType<T> dataType);

View File

@ -8836,6 +8836,54 @@ public interface DSLContext extends Scope , AutoCloseable {
@Support({ H2, POSTGRES })
CreateDomainAsStep createDomainIfNotExists(Domain<?> domain);
/**
* The <code>ALTER DATABASE</code> statement.
*
* @see DSL#alterDatabase(String)
*/
@Support({ POSTGRES })
AlterDatabaseStep alterDatabase(String database);
/**
* The <code>ALTER DATABASE</code> statement.
*
* @see DSL#alterDatabase(Name)
*/
@Support({ POSTGRES })
AlterDatabaseStep alterDatabase(Name database);
/**
* The <code>ALTER DATABASE</code> statement.
*
* @see DSL#alterDatabase(Catalog)
*/
@Support({ POSTGRES })
AlterDatabaseStep alterDatabase(Catalog database);
/**
* The <code>ALTER DATABASE IF EXISTS</code> statement.
*
* @see DSL#alterDatabaseIfExists(String)
*/
@Support({ POSTGRES })
AlterDatabaseStep alterDatabaseIfExists(String database);
/**
* The <code>ALTER DATABASE IF EXISTS</code> statement.
*
* @see DSL#alterDatabaseIfExists(Name)
*/
@Support({ POSTGRES })
AlterDatabaseStep alterDatabaseIfExists(Name database);
/**
* The <code>ALTER DATABASE IF EXISTS</code> statement.
*
* @see DSL#alterDatabaseIfExists(Catalog)
*/
@Support({ POSTGRES })
AlterDatabaseStep alterDatabaseIfExists(Catalog database);
/**
* The <code>ALTER DOMAIN</code> statement.
*
@ -9942,54 +9990,6 @@ public interface DSLContext extends Scope , AutoCloseable {
@Support({ H2, MARIADB, POSTGRES })
AlterTableStep alterTableIfExists(Table<?> table);
/**
* Create a new DSL <code>ALTER DATABASE</code> statement.
*
* @see DSL#alterDatabase(String)
*/
@Support({ POSTGRES })
AlterDatabaseStep alterDatabase(String database);
/**
* Create a new DSL <code>ALTER DATABASE</code> statement.
*
* @see DSL#alterDatabase(Name)
*/
@Support({ POSTGRES })
AlterDatabaseStep alterDatabase(Name database);
/**
* Create a new DSL <code>ALTER DATABASE</code> statement.
*
* @see DSL#alterDatabase(Catalog)
*/
@Support({ POSTGRES })
AlterDatabaseStep alterDatabase(Catalog database);
/**
* Create a new DSL <code>ALTER DATABASE</code> statement.
*
* @see DSL#alterDatabaseIfExists(String)
*/
@Support({ POSTGRES })
AlterDatabaseStep alterDatabaseIfExists(String database);
/**
* Create a new DSL <code>ALTER DATABASE</code> statement.
*
* @see DSL#alterDatabaseIfExists(Name)
*/
@Support({ POSTGRES })
AlterDatabaseStep alterDatabaseIfExists(Name database);
/**
* Create a new DSL <code>ALTER DATABASE</code> statement.
*
* @see DSL#alterDatabaseIfExists(Catalog)
*/
@Support({ POSTGRES })
AlterDatabaseStep alterDatabaseIfExists(Catalog database);
/**
* Create a new DSL <code>ALTER SCHEMA</code> statement.
*

View File

@ -37,90 +37,95 @@
*/
package org.jooq.impl;
// ...
// ...
import static org.jooq.SQLDialect.POSTGRES;
import static org.jooq.impl.DSL.name;
import static org.jooq.impl.Keywords.K_ALTER;
import static org.jooq.impl.Keywords.K_DATABASE;
import static org.jooq.impl.Keywords.K_IF_EXISTS;
import static org.jooq.impl.Keywords.K_RENAME;
import static org.jooq.impl.Keywords.K_RENAME_TO;
import static org.jooq.impl.Keywords.K_TO;
import static org.jooq.impl.Keywords.*;
import static org.jooq.impl.Tools.BooleanDataKey.*;
import static org.jooq.SQLDialect.*;
import java.util.Set;
import org.jooq.*;
import org.jooq.impl.*;
import org.jooq.AlterDatabaseFinalStep;
import org.jooq.AlterDatabaseStep;
import org.jooq.Catalog;
import org.jooq.Configuration;
import org.jooq.Context;
import org.jooq.Name;
// ...
import org.jooq.SQLDialect;
import java.util.*;
/**
* @author Lukas Eder
* The <code>ALTER DATABASE IF EXISTS</code> statement.
*/
final class AlterDatabaseImpl extends AbstractRowCountQuery implements
// Cascading interface implementations for ALTER DATABASE behaviour
@SuppressWarnings({ "hiding", "rawtypes", "unchecked", "unused" })
final class AlterDatabaseImpl
extends
AbstractRowCountQuery
implements
AlterDatabaseStep,
AlterDatabaseFinalStep {
AlterDatabaseFinalStep
{
private static final long serialVersionUID = 1L;
private final Catalog database;
private final boolean ifExists;
private final Catalog renameTo;
AlterDatabaseImpl(
Configuration configuration,
Catalog database,
boolean ifExists
) {
this(
configuration,
database,
ifExists,
null
);
}
AlterDatabaseImpl(
Configuration configuration,
Catalog database,
boolean ifExists,
Catalog renameTo
) {
super(configuration);
this.database = database;
this.ifExists = ifExists;
this.renameTo = renameTo;
}
// -------------------------------------------------------------------------
// XXX DSL API
// -------------------------------------------------------------------------
@Override
public final AlterDatabaseImpl renameTo(String renameTo) {
return renameTo(DSL.catalog(renameTo));
}
@Override
public final AlterDatabaseImpl renameTo(Name renameTo) {
return renameTo(DSL.catalog(renameTo));
}
@Override
public final AlterDatabaseImpl renameTo(Catalog renameTo) {
return new AlterDatabaseImpl(
configuration(),
this.database,
this.ifExists,
renameTo
);
}
// -------------------------------------------------------------------------
// XXX QueryPart API
// -------------------------------------------------------------------------
/**
* Generated UID
*/
private static final long serialVersionUID = 8904572826501186329L;
private static final Set<SQLDialect> NO_SUPPORT_IF_EXISTS = SQLDialect.supportedBy(POSTGRES);
private final Catalog database;
private final boolean ifExists;
private Catalog renameTo;
AlterDatabaseImpl(Configuration configuration, Catalog database) {
this(configuration, database, false);
}
AlterDatabaseImpl(Configuration configuration, Catalog database, boolean ifExists) {
super(configuration);
this.database = database;
this.ifExists = ifExists;
}
final Catalog $database() { return database; }
final boolean $ifExists() { return ifExists; }
final Catalog $renameTo() { return renameTo; }
// ------------------------------------------------------------------------
// XXX: DSL API
// ------------------------------------------------------------------------
@Override
public final AlterDatabaseImpl renameTo(Catalog newName) {
this.renameTo = newName;
return this;
}
@Override
public final AlterDatabaseImpl renameTo(Name newName) {
return renameTo(DSL.catalog(newName));
}
@Override
public final AlterDatabaseImpl renameTo(String newName) {
return renameTo(name(newName));
}
// ------------------------------------------------------------------------
// XXX: QueryPart API
// ------------------------------------------------------------------------
private final boolean supportsIfExists(Context<?> ctx) {
return !NO_SUPPORT_IF_EXISTS.contains(ctx.family());
}
@ -160,4 +165,6 @@ final class AlterDatabaseImpl extends AbstractRowCountQuery implements
.qualify(qualify);
}
}
}

View File

@ -135,7 +135,6 @@ import java.util.function.Function;
import javax.sql.DataSource;
import org.jooq.AggregateFunction;
import org.jooq.AlterDatabaseStep;
import org.jooq.AlterIndexOnStep;
import org.jooq.AlterIndexStep;
import org.jooq.AlterSchemaStep;
@ -6944,6 +6943,66 @@ public class DSL {
return dsl().createDomainIfNotExists(domain);
}
/**
* The <code>ALTER DATABASE</code> statement.
*
* @see DSLContext#alterDatabase(String)
*/
@Support({ POSTGRES })
public static org.jooq.AlterDatabaseStep alterDatabase(String database) {
return dsl().alterDatabase(database);
}
/**
* The <code>ALTER DATABASE</code> statement.
*
* @see DSLContext#alterDatabase(Name)
*/
@Support({ POSTGRES })
public static org.jooq.AlterDatabaseStep alterDatabase(Name database) {
return dsl().alterDatabase(database);
}
/**
* The <code>ALTER DATABASE</code> statement.
*
* @see DSLContext#alterDatabase(Catalog)
*/
@Support({ POSTGRES })
public static org.jooq.AlterDatabaseStep alterDatabase(Catalog database) {
return dsl().alterDatabase(database);
}
/**
* The <code>ALTER DATABASE IF EXISTS</code> statement.
*
* @see DSLContext#alterDatabaseIfExists(String)
*/
@Support({ POSTGRES })
public static org.jooq.AlterDatabaseStep alterDatabaseIfExists(String database) {
return dsl().alterDatabaseIfExists(database);
}
/**
* The <code>ALTER DATABASE IF EXISTS</code> statement.
*
* @see DSLContext#alterDatabaseIfExists(Name)
*/
@Support({ POSTGRES })
public static org.jooq.AlterDatabaseStep alterDatabaseIfExists(Name database) {
return dsl().alterDatabaseIfExists(database);
}
/**
* The <code>ALTER DATABASE IF EXISTS</code> statement.
*
* @see DSLContext#alterDatabaseIfExists(Catalog)
*/
@Support({ POSTGRES })
public static org.jooq.AlterDatabaseStep alterDatabaseIfExists(Catalog database) {
return dsl().alterDatabaseIfExists(database);
}
/**
* The <code>ALTER DOMAIN</code> statement.
*
@ -8012,66 +8071,6 @@ public class DSL {
return dsl().alterTableIfExists(table);
}
/**
* Create a new DSL <code>ALTER DATABASE</code> statement.
*
* @see DSLContext#alterDatabase(String)
*/
@Support({ POSTGRES })
public static AlterDatabaseStep alterDatabase(String database) {
return dsl().alterDatabase(database);
}
/**
* Create a new DSL <code>ALTER DATABASE</code> statement.
*
* @see DSLContext#alterDatabase(Name)
*/
@Support({ POSTGRES })
public static AlterDatabaseStep alterDatabase(Name database) {
return dsl().alterDatabase(database);
}
/**
* Create a new DSL <code>ALTER DATABASE</code> statement.
*
* @see DSLContext#alterDatabase(Catalog)
*/
@Support({ POSTGRES })
public static AlterDatabaseStep alterDatabase(Catalog database) {
return dsl().alterDatabase(database);
}
/**
* Create a new DSL <code>ALTER DATABASE</code> statement.
*
* @see DSLContext#alterDatabaseIfExists(String)
*/
@Support({ POSTGRES })
public static AlterDatabaseStep alterDatabaseIfExists(String database) {
return dsl().alterDatabaseIfExists(database);
}
/**
* Create a new DSL <code>ALTER DATABASE</code> statement.
*
* @see DSLContext#alterDatabaseIfExists(Name)
*/
@Support({ POSTGRES })
public static AlterDatabaseStep alterDatabaseIfExists(Name database) {
return dsl().alterDatabaseIfExists(database);
}
/**
* Create a new DSL <code>ALTER DATABASE</code> statement.
*
* @see DSLContext#alterDatabaseIfExists(Catalog)
*/
@Support({ POSTGRES })
public static AlterDatabaseStep alterDatabaseIfExists(Catalog database) {
return dsl().alterDatabaseIfExists(database);
}
/**
* Create a new DSL <code>ALTER SCHEMA</code> statement.
*

View File

@ -92,7 +92,6 @@ import javax.xml.parsers.ParserConfigurationException;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
import org.jooq.AlterDatabaseStep;
import org.jooq.AlterIndexOnStep;
import org.jooq.AlterIndexStep;
import org.jooq.AlterSchemaStep;
@ -2981,6 +2980,36 @@ public class DefaultDSLContext extends AbstractScope implements DSLContext, Seri
return new CreateDomainImpl<>(configuration(), domain, true);
}
@Override
public org.jooq.AlterDatabaseStep alterDatabase(String database) {
return new AlterDatabaseImpl(configuration(), DSL.catalog(database), false);
}
@Override
public org.jooq.AlterDatabaseStep alterDatabase(Name database) {
return new AlterDatabaseImpl(configuration(), DSL.catalog(database), false);
}
@Override
public org.jooq.AlterDatabaseStep alterDatabase(Catalog database) {
return new AlterDatabaseImpl(configuration(), database, false);
}
@Override
public org.jooq.AlterDatabaseStep alterDatabaseIfExists(String database) {
return new AlterDatabaseImpl(configuration(), DSL.catalog(database), true);
}
@Override
public org.jooq.AlterDatabaseStep alterDatabaseIfExists(Name database) {
return new AlterDatabaseImpl(configuration(), DSL.catalog(database), true);
}
@Override
public org.jooq.AlterDatabaseStep alterDatabaseIfExists(Catalog database) {
return new AlterDatabaseImpl(configuration(), database, true);
}
@Override
public <T> org.jooq.AlterDomainStep<T> alterDomain(String domain) {
return new AlterDomainImpl<>(configuration(), DSL.domain(domain), false);
@ -3673,36 +3702,6 @@ public class DefaultDSLContext extends AbstractScope implements DSLContext, Seri
return new AlterTableImpl(configuration(), table, true);
}
@Override
public AlterDatabaseStep alterDatabase(String database) {
return alterDatabase(name(database));
}
@Override
public AlterDatabaseStep alterDatabase(Name database) {
return alterDatabase(catalog(database));
}
@Override
public AlterDatabaseStep alterDatabase(Catalog database) {
return new AlterDatabaseImpl(configuration(), database);
}
@Override
public AlterDatabaseStep alterDatabaseIfExists(String database) {
return alterDatabaseIfExists(name(database));
}
@Override
public AlterDatabaseStep alterDatabaseIfExists(Name database) {
return alterDatabaseIfExists(catalog(database));
}
@Override
public AlterDatabaseStep alterDatabaseIfExists(Catalog database) {
return new AlterDatabaseImpl(configuration(), database, true);
}
@Override
public AlterSchemaStep alterSchema(String schema) {
return alterSchema(name(schema));