Package ca.uhn.fhir.jpa.migrate.taskdef
Class DropPrimaryKeyTask
java.lang.Object
ca.uhn.fhir.jpa.migrate.taskdef.BaseTask
ca.uhn.fhir.jpa.migrate.taskdef.BaseTableTask
ca.uhn.fhir.jpa.migrate.taskdef.DropPrimaryKeyTask
Migration task that handles cross-database logic for dropping a primary key.
The process involves 2 steps for most databases:
- Running SQL to introspect the metadata tables to determine the name of the primary key.
- Running an ALTER TABLE to drop the constraint found above by name.
-
Nested Class Summary
Nested classes/interfaces inherited from class ca.uhn.fhir.jpa.migrate.taskdef.BaseTask
BaseTask.ExecutedStatement -
Field Summary
Fields inherited from class ca.uhn.fhir.jpa.migrate.taskdef.BaseTask
MIGRATION_VERSION_PATTERN, myCheckForExistingTables, myPrettyPrint -
Constructor Summary
ConstructorsConstructorDescriptionDropPrimaryKeyTask(String theProductVersion, String theSchemaVersion, String theTableName) -
Method Summary
Methods inherited from class ca.uhn.fhir.jpa.migrate.taskdef.BaseTableTask
generateEquals, generateHashCode, getSqlType, getTableName, setTableName, validateMethods inherited from class ca.uhn.fhir.jpa.migrate.taskdef.BaseTask
addFlag, addPrecondition, captureExecutedStatement, equals, execute, executeSql, executeSqlListInTransaction, getChangesCount, getConnectionProperties, getDescription, getDriverType, getExecutedStatements, getExecutionResult, getMigrationVersion, getProductVersion, getSchemaVersion, getTxTemplate, hasFlag, hashCode, initializedSchema, isDoNothing, isDryRun, isHeavyweightSkippableTask, isNoColumnShrink, isRunDuringSchemaInitialization, logInfo, newJdbcTemplate, setConnectionProperties, setDescription, setDriverType, setDryRun, setNoColumnShrink, setOnlyAppliesToPlatforms, setPrettyPrint, setTransactional, toString, validateVersion
-
Constructor Details
-
DropPrimaryKeyTask
-
-
Method Details
-
doExecute
- Specified by:
doExecutein classBaseTask- Throws:
SQLException
-