public class MigrationUtils extends Object
| Constructor and Description |
|---|
MigrationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Integer |
dropDBConstraint(Connection connection,
String tableName,
String columnName,
String constraintSuffix)
Drop a given Database Constraint (based on the current database type).
|
public static Integer dropDBConstraint(Connection connection, String tableName, String columnName, String constraintSuffix) throws SQLException
connection - the current Database connectiontableName - the name of the table the constraint applies tocolumnName - the name of the column the constraint applies toconstraintSuffix - Only used for PostgreSQL, whose constraint naming convention depends on a suffix (key, fkey, etc)SQLException - if a database error occursCopyright © 2014 DuraSpace. All Rights Reserved.