Class DbSchemas
java.lang.Object
migratedb.v1.core.internal.command.DbSchemas
Handles MigrateDB 's automatic schema creation.
-
Constructor Summary
ConstructorsConstructorDescriptionDbSchemas(Database<?> database, Schema<?, ?>[] schemas, SchemaHistory schemaHistory, CallbackExecutor callbackExecutor) Creates a new DbSchemas. -
Method Summary
-
Constructor Details
-
DbSchemas
public DbSchemas(Database<?> database, Schema<?, ?>[] schemas, SchemaHistory schemaHistory, CallbackExecutor callbackExecutor) Creates a new DbSchemas.- Parameters:
database- The database to use.schemas- The schemas managed by MigrateDB.schemaHistory- The schema history table.
-
-
Method Details
-
create
public void create(boolean baseline) Creates the schemas.- Parameters:
baseline- Whether to include the creation of a baseline marker.
-