private void checkNullable() { for (Index index : table.getIndexes()) { if (index.getColumnIndex(oldColumn) < 0) { continue; } IndexType indexType = index.getIndexType(); if (indexType.isPrimaryKey() || indexType.isHash()) { throw DbException.get(ErrorCode.COLUMN_IS_PART_OF_INDEX_1, index.getSQL()); } } }