mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 00:24:57 +00:00
Drop constraints using CASCADE
Co-Authored-By: William Cekan <wcekan@oath.com>
This commit is contained in:
parent
b35ccc8e37
commit
b5443deab3
@ -259,11 +259,6 @@ public boolean bindLimitParametersFirst() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsIfExistsAfterTableName() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsIfExistsBeforeConstraintName() {
|
||||
return true;
|
||||
@ -434,8 +429,25 @@ public boolean supportsTuplesInSubqueries() {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Do not drop constraints explicitly, just do this by cascading instead.
|
||||
@Override
|
||||
public boolean supportsIfExistsAfterAlterTable() {
|
||||
public boolean dropConstraints() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCascadeConstraintsString() {
|
||||
return " CASCADE ";
|
||||
}
|
||||
|
||||
// CASCADE has to be AFTER IF EXISTS in case it's after the tablename
|
||||
@Override
|
||||
public boolean supportsIfExistsAfterTableName() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsIfExistsBeforeTableName() {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user