java.lang.Object
org.jooq.MigrationConfiguration
A configuration type for use with the various
Meta.migrateTo(Meta)
methods.
This is EXPERIMENTAL functionality and subject to change in future jOOQ versions.
- Author:
- Lukas Eder
-
Constructor Summary
ConstructorDescriptionCreate a new default export configuration instance. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
WhetherALTER TABLE
statements should add multiple columns and constraints in a single statement where supported.final MigrationConfiguration
alterTableAddMultiple
(boolean newAlterTableAddMultiple) WhetherALTER TABLE
statements should add multiple columns and constraints in a single statement where supported.final boolean
WhetherALTER TABLE … DROP
statements should have aCASCADE [ CONSTRAINTS ]
clause where supported.final MigrationConfiguration
alterTableDropCascade
(boolean newAlterTableDropCascade) WhetherALTER TABLE … DROP
statements should have aCASCADE [ CONSTRAINTS ]
clause where supported.final boolean
WhetherALTER TABLE
statements should add multiple columns and constraints in a single statement where supported.final MigrationConfiguration
alterTableDropMultiple
(boolean newAlterTableDropMultiple) WhetherALTER TABLE
statements should drop multiple columns and constraints in a single statement where supported.final boolean
Whether the views should be (create-or-)replaced or dropped and re-created.final MigrationConfiguration
createOrReplaceView
(boolean newCreateOrReplaceView) Whether the views should be (create-or-)replaced or dropped and re-created.final boolean
WhetherDROP SCHEMA
statements should have aCASCADE
clause where supported.final MigrationConfiguration
dropSchemaCascade
(boolean newDropSchemaCascade) WhetherDROP SCHEMA
statements should have aCASCADE
clause where supported.final boolean
WhetherDROP TABLE
statements should have aCASCADE [ CONSTRAINTS ]
clause where supported.final MigrationConfiguration
dropTableCascade
(boolean newDropTableCascade) WhetherDROP TABLE
statements should have aCASCADE [ CONSTRAINTS ]
clause where supported.final boolean
Whether the column order should be respected in a migration.final MigrationConfiguration
respectColumnOrder
(boolean newRespectColumnOrder) Whether the column order should be respected in a migration.
-
Constructor Details
-
MigrationConfiguration
public MigrationConfiguration()Create a new default export configuration instance.
-
-
Method Details
-
alterTableAddMultiple
public final boolean alterTableAddMultiple()WhetherALTER TABLE
statements should add multiple columns and constraints in a single statement where supported. -
alterTableAddMultiple
WhetherALTER TABLE
statements should add multiple columns and constraints in a single statement where supported. -
alterTableDropMultiple
public final boolean alterTableDropMultiple()WhetherALTER TABLE
statements should add multiple columns and constraints in a single statement where supported. -
alterTableDropMultiple
WhetherALTER TABLE
statements should drop multiple columns and constraints in a single statement where supported. -
dropSchemaCascade
public final boolean dropSchemaCascade()WhetherDROP SCHEMA
statements should have aCASCADE
clause where supported. -
dropSchemaCascade
WhetherDROP SCHEMA
statements should have aCASCADE
clause where supported. -
dropTableCascade
public final boolean dropTableCascade()WhetherDROP TABLE
statements should have aCASCADE [ CONSTRAINTS ]
clause where supported. -
dropTableCascade
WhetherDROP TABLE
statements should have aCASCADE [ CONSTRAINTS ]
clause where supported. -
alterTableDropCascade
public final boolean alterTableDropCascade()WhetherALTER TABLE … DROP
statements should have aCASCADE [ CONSTRAINTS ]
clause where supported. -
alterTableDropCascade
WhetherALTER TABLE … DROP
statements should have aCASCADE [ CONSTRAINTS ]
clause where supported. -
createOrReplaceView
public final boolean createOrReplaceView()Whether the views should be (create-or-)replaced or dropped and re-created. -
createOrReplaceView
Whether the views should be (create-or-)replaced or dropped and re-created. -
respectColumnOrder
public final boolean respectColumnOrder()Whether the column order should be respected in a migration. -
respectColumnOrder
Whether the column order should be respected in a migration.
-