Skip to content

v0.3.0

Choose a tag to compare

@woduda woduda released this 09 Jun 06:29
· 10 commits to main since this release

What's new

  • civicrm:apply-schema {file?} {--dry-run} — declarative YAML schema applier; idempotent get-or-create for custom groups/fields, tags, activity types, relationship types, and groups; dry-run mode shows what would be created without writing anything
  • SchemaDefinition DTO with sub-DTOs (CustomGroupDef, CustomFieldDef, RelationshipTypeDef, OptionValueDef) — validates the YAML shape and throws ValidationException with human-readable context on bad input
  • SchemaApplier service + SchemaApplyReport — separates created / existing / wouldCreate entries; toTable() ready for Artisan's table helper
  • resources/schema/example.yaml — annotated reference schema (Volunteer Data group, relationship types, tags, activity type, group)
  • civicrm.schema_path config key (CIVICRM_SCHEMA_PATH env) — default file path when the {file} argument is omitted

See CHANGELOG.md for full details.