attributes.addObject(attribute);
}
entity.setPrimaryKeyAttributes(attributes);
NSArray<EOSQLExpression> expressions = schemaGeneration.primaryKeyConstraintStatementsForEntityGroup(new NSArray<EOEntity>(entity));
ERXMigrationDatabase._ensureNotEmpty(expressions, "add primary key", true);
NSArray<EOSQLExpression> supportExpressions = schemaGeneration.primaryKeySupportStatementsForEntityGroup(new NSArray<EOEntity>(entity));
return expressions.arrayByAddingObjectsFromArray(supportExpressions);
}
/**
* Executes the SQL operations to add this unique index.