Module Activation Integration: - Added automatic migration to module init() method - Migration runs when module is activated/reactivated - Checks if table exists and migration is needed - Safe migration with proper error handling Migration Features: - Drops old unique constraint (entity, ca3_line) - Adds new constraint (entity, ca3_line, account_code) - Allows multiple accounts per CA-3 line - Adds performance index on account_code - Updates table comments for new CA-3 structure Debug Improvements: - Simplified debug output in setup page - Shows if table structure is correct - Indicates if migration is needed - Clear instructions for user No manual database access needed - migration runs automatically! |
||
|---|---|---|
| .. | ||
| class | ||
| modules | ||