# Engine::migrate_legacy_rule_caps()

One-time conversion of saved rules from the old points cap (`max_points`) to `max_times`.

Idempotent: rules that already have `max_times` are left alone and a flag option stops later runs.

```php
migrate_legacy_rule_caps(  ): void
```

## Return

`void` 

## Changelog

| Version | Description |
| --- | --- |
| 1.1.0 | Introduced |
