Release v0.0.2
feat: enhance Performance Bundle with new tracking and notification features
- Added HTTP status code tracking to monitor and calculate ratios for various status codes (200, 404, 500, etc.).
- Introduced a compatibility guide detailing supported Doctrine and DBAL versions, along with breaking changes.
- Implemented a notification system for performance alerts via email, Slack, Teams, and webhooks.
- Updated documentation to include new configuration options and usage examples for the notification system.
- Removed the outdated test coverage report file and improved overall code organization.
Changelog
Added
- Comprehensive test coverage for CreateTableCommand - Added 14+ new tests
- Tests for AUTO_INCREMENT detection and fixing
- Tests for foreign key handling during AUTO_INCREMENT fixes
- Tests for column type, length, and default value differences
- Tests for boolean and numeric default value comparison
- Tests for nullable differences detection
- Tests for missing indexes addition
- Tests for platform compatibility (MySQL vs PostgreSQL)
- Tests for error handling when restoring foreign keys
- Total: 20+ tests covering all edge cases
Fixed
- AUTO_INCREMENT for id column - Fixed issue where
idcolumn was not configured as AUTO_INCREMENT in MySQL/MariaDB- Command
nowo:performance:create-table --updatenow automatically detects and fixes missing AUTO_INCREMENT - Handles foreign key constraints by temporarily dropping and restoring them during column modification
- Improved regex patterns for adding AUTO_INCREMENT when creating tables via SchemaTool
- Enhanced column definition generation to include AUTO_INCREMENT for identifier columns
- Detects autoincrement status from entity metadata (GeneratedValue strategy)
- Fixes "Field 'id' doesn't have a default value" errors when inserting records
- Query INFORMATION_SCHEMA correctly using JOIN between KEY_COLUMN_USAGE and REFERENTIAL_CONSTRAINTS
- Properly restores foreign keys with original UPDATE_RULE and DELETE_RULE after fixing AUTO_INCREMENT
- Command
Commits
- feat: enhance Performance Bundle with new tracking and notification features (5530bf1)