TenantAtlas/specs/999-seeder-external-id/plan.md
ahmido 81c010fa00 fix: Harden SyncPoliciesJob supported types handling (#75)
Harden SyncPoliciesJob type input parsing + fail fast when supported types are empty/mismatched. Pass supported policy types from Tenant sync action and add regression tests.

Co-authored-by: Ahmed Darrazi <ahmeddarrazi@adsmac.fritz.box>
Reviewed-on: #75
2026-01-26 19:23:40 +00:00

18 lines
653 B
Markdown

# Plan — 999 Fix seeding: tenants.external_id not-null
## Tech
- Laravel 12
- PostgreSQL via Sail
## Approach
1. Confirm `tenants.external_id` schema requirements in migrations.
2. Update the relevant seeder(s) so the default tenant includes `external_id`.
- Prefer generating a UUID (`Str::uuid()`) if `external_id` is meant to be globally unique.
3. Run `./vendor/bin/sail artisan migrate:fresh --seed`.
4. Add/adjust a small Pest test to prevent regression.
## Files
- `database/seeders/PoliciesSeeder.php` (likely)
- `database/seeders/DatabaseSeeder.php` (if orchestration changes needed)
- `tests/Feature/...` (new/updated regression test)