public class MigrationUtils
extends java.lang.Object
| Constructor and Description |
|---|
MigrationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Integer |
dropDBConstraint(java.sql.Connection connection,
java.lang.String tableName,
java.lang.String columnName,
java.lang.String constraintSuffix)
Drop a given Database Constraint (based on the current database type).
|
public static java.lang.Integer dropDBConstraint(java.sql.Connection connection,
java.lang.String tableName,
java.lang.String columnName,
java.lang.String constraintSuffix)
throws java.sql.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)java.sql.SQLException - if a database error occursCopyright © 2014 DuraSpace. All Rights Reserved.