提交 a42236ec 编写于 作者: S serge-rider

#401 PG drop constraint fix

上级 6b53b9aa
......@@ -85,11 +85,7 @@ public class PostgreConstraintManager extends SQLConstraintManager<PostgreTableC
@Override
protected String getDropConstraintPattern(PostgreTableConstraintBase constraint)
{
if (constraint.getConstraintType() == DBSEntityConstraintType.PRIMARY_KEY) {
return "ALTER TABLE " + PATTERN_ITEM_TABLE +" DROP PRIMARY KEY"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
} else {
return "ALTER TABLE " + PATTERN_ITEM_TABLE +" DROP KEY " + PATTERN_ITEM_CONSTRAINT; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
}
return "ALTER TABLE " + PATTERN_ITEM_TABLE +" DROP CONSTRAINT " + PATTERN_ITEM_CONSTRAINT; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册