- Implement tests to ensure the case tree contains parent and child branches while preventing cycles. - Verify that the timeline UI utilizes tree filters and cursor paging. - Confirm that the relation tree is displayed as a separate tab with appropriate search filters and inline module content. Enhance time tracking with prepaid card usage alerts - Create a migration to track alerts for prepaid card usage at 80% and 100%. - Implement triggers to generate cases when usage thresholds are reached, ensuring proper notifications and case management. Introduce audit logging for time entry edits - Modify the sync log to include time entry updates in the audit stream without altering existing records. Establish tracking for vTiger case imports and exports - Create tables to track cases imported from vTiger into Hub and exports from Hub to vTiger, ensuring idempotency and proper reference management.
12 lines
574 B
SQL
12 lines
574 B
SQL
-- Add time-entry edits to the existing audit stream without changing older rows.
|
|
ALTER TABLE tmodule_sync_log DROP CONSTRAINT IF EXISTS check_event_type;
|
|
|
|
ALTER TABLE tmodule_sync_log ADD CONSTRAINT check_event_type CHECK (event_type IN (
|
|
'sync_started', 'sync_completed', 'sync_failed',
|
|
'approval', 'rejection', 'bulk_approval',
|
|
'order_created', 'order_updated', 'order_cancelled',
|
|
'export_started', 'export_completed', 'export_failed',
|
|
'module_installed', 'module_uninstalled',
|
|
'hourly_rate_updated', 'time_card_toggled', 'time_entry_updated'
|
|
));
|