db2 driver updates

This commit is contained in:
Mark Gregory
2026-11-11 11:11:30 +00:00
parent 984b52f39e
commit 84844311a5
8 changed files with 1051 additions and 4 deletions
+20
View File
@@ -37,3 +37,23 @@ and Laravel migration registration and rollback.
- Migration batch lookup casts query-builder `max('batch')` results to text so
Laravel can perform numeric arithmetic through PDO_ODBC. This applies to custom
migration history table names as well.
## Phase 7 data types and indexes
- `char(length)` creates a fixed-width Db2 character column. `uuid()` uses
`CHAR(36)` and leaves UUID validation and generation to the application.
- `time()` uses Db2 TIME at whole-second precision. Fractional TIME precision
raises an exception. Timestamp and datetime definitions accept Db2
fractional-second precision, and the catalog reports it for TIMESTAMP.
- `renameIndex()` uses Db2's same-schema rename for an application-created
index. It preserves key order and uniqueness. Db2 requires the target name
to be available in that schema.
- Time-zone-aware column types, binary UUID storage, expression indexes,
and automatic REORG remain outside the verified scope.
Run the focused live tests with:
```sh
APP_ENV=testing php artisan test --do-not-cache-result tests/Feature/Db2/SchemaTypesAndIndexesTest.php
```