Initial commit

This commit is contained in:
2026-04-23 21:38:24 -04:00
commit 63e12a9636
1762 changed files with 1672620 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
-- Fix IsSystemDefined flag for Job Priorities
-- Only "NORMAL" should be system-defined, the rest should be editable
PRINT 'Fixing Job Priority system-defined flags...';
UPDATE JobPriorityLookups
SET IsSystemDefined = 0
WHERE PriorityCode IN ('LOW', 'HIGH', 'URGENT', 'RUSH');
PRINT 'Fixed. Only NORMAL priority is now system-defined.';
-- Verify
SELECT
PriorityCode,
DisplayName,
IsSystemDefined,
CASE WHEN IsSystemDefined = 1 THEN 'Protected' ELSE 'Editable' END AS Status
FROM JobPriorityLookups
WHERE IsDeleted = 0
ORDER BY DisplayOrder;