mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-24 03:31:13 -05:00
Connect to Lovable Cloud
The user approved the use of the Lovable tool. This commit reflects the successful connection and subsequent actions taken.
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
-- Add rate_limit_violation to system_alerts alert_type check constraint
|
||||
-- This enables tracking of rate limit violations in the admin dashboard
|
||||
|
||||
-- First, drop the existing check constraint
|
||||
ALTER TABLE system_alerts
|
||||
DROP CONSTRAINT IF EXISTS system_alerts_alert_type_check;
|
||||
|
||||
-- Recreate the constraint with the new value
|
||||
ALTER TABLE system_alerts
|
||||
ADD CONSTRAINT system_alerts_alert_type_check CHECK (alert_type IN (
|
||||
'orphaned_images',
|
||||
'stale_submissions',
|
||||
'circular_dependency',
|
||||
'validation_error',
|
||||
'ban_attempt',
|
||||
'upload_timeout',
|
||||
'high_error_rate',
|
||||
'rate_limit_violation',
|
||||
'temp_ref_error',
|
||||
'submission_queue_backlog',
|
||||
'failed_submissions',
|
||||
'high_ban_rate',
|
||||
'slow_approval'
|
||||
));
|
||||
Reference in New Issue
Block a user