20 lines
654 B
Markdown
20 lines
654 B
Markdown
# Plan: Inventory links support non-UUID IDs
|
|
|
|
**Branch**: `079-inventory-links-non-uuid-ids`
|
|
**Date**: 2026-02-07
|
|
|
|
## Approach
|
|
|
|
- Add a PostgreSQL migration to change `inventory_links.source_id` and `inventory_links.target_id` from `uuid` to `text`.
|
|
- Add a pgsql-specific test that asserts the column types are `text` and that upserting an edge with a non-UUID `target_id` does not error.
|
|
|
|
## Safety
|
|
|
|
- Change is limited to `inventory_links` columns only.
|
|
- Unique constraint and indexes continue to function on `text` columns.
|
|
|
|
## Testing
|
|
|
|
- Pest feature test under `tests/Feature/Inventory/`.
|
|
- Run focused test + existing inventory extraction tests.
|