feat: implement dynamic migration execution per tenant #9

Merged
psycodepath merged 1 commit from issue/3-migrations into main 2026-07-03 18:50:28 +00:00
Owner
  • Add TenantAwareMigrationRunner for automatic schema initialization
  • Implement in-memory caching to avoid repeated migrations per request
  • Use file-based locking for concurrency-safe migration execution
  • Migrations run dynamically on first tenant database access
  • Add comprehensive unit tests for dynamic migrations
  • Add Behat feature tests for migration scenarios
  • Register TenantAwareMigrationRunner in AppBootstrap DI container

Database schemas are automatically initialized when new tenants access
the system. Migration marker files track completion to avoid re-running.

Co-Authored-By: Claude Haiku 4.5 noreply@anthropic.com

- Add TenantAwareMigrationRunner for automatic schema initialization - Implement in-memory caching to avoid repeated migrations per request - Use file-based locking for concurrency-safe migration execution - Migrations run dynamically on first tenant database access - Add comprehensive unit tests for dynamic migrations - Add Behat feature tests for migration scenarios - Register TenantAwareMigrationRunner in AppBootstrap DI container Database schemas are automatically initialized when new tenants access the system. Migration marker files track completion to avoid re-running. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
feat: implement dynamic migration execution per tenant
Some checks failed
CI/CD Pipeline / test (pull_request) Failing after 2s
CI/CD Pipeline / build-and-push (pull_request) Failing after 0s
ccbc45d7ea
- Add TenantAwareMigrationRunner for automatic schema initialization
- Implement in-memory caching to avoid repeated migrations per request
- Use file-based locking for concurrency-safe migration execution
- Migrations run dynamically on first tenant database access
- Add comprehensive unit tests for dynamic migrations
- Add Behat feature tests for migration scenarios
- Register TenantAwareMigrationRunner in AppBootstrap DI container

Database schemas are automatically initialized when new tenants access
the system. Migration marker files track completion to avoid re-running.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
psycodepath/hrp!9
No description provided.