Updated to using managed types instead of

hard coded ones.
This commit is contained in:
2026-01-16 17:48:46 +02:00
parent 14e6737a1d
commit 4defe33bd3
280 changed files with 48455 additions and 62 deletions

View File

@@ -0,0 +1,11 @@
USE emergency_tracker;
-- Add field column if it doesn't exist
ALTER TABLE users
ADD COLUMN IF NOT EXISTS field ENUM('הפעלה', 'תוכנה', 'סייבר', 'טכני', 'מטה') DEFAULT NULL AFTER team;
-- Update existing users with default field if they don't have one
UPDATE users SET field = 'מטה' WHERE field IS NULL AND is_admin = TRUE;
-- Show the updated structure
DESCRIBE users;