Add Employee Recognition feature to notifications system
- Add Recognition notification type (ID 5) with blue color - Add employeesso field to notifications table - Create carousel display for Recognition on shopfloor dashboard - Show employee names (lookup from wjf_employees) instead of SSO - Auto-set starttime to NOW and endtime to 4AM next day - Auto-enable shopfloor display for Recognition type - Add Achievements tab to employee profile (displayprofile.asp) - Hide Recognition from calendar view - Add lookupemployee.asp AJAX endpoint for name preview - Fix datetime double-formatting bug in save/update files - Fix URL parameter loading on shopfloor dashboard init 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
16
sql/add_recognition_feature.sql
Normal file
16
sql/add_recognition_feature.sql
Normal file
@@ -0,0 +1,16 @@
|
||||
-- ============================================================================
|
||||
-- Recognition Feature Migration
|
||||
-- Add employee recognition support to notifications
|
||||
-- ============================================================================
|
||||
|
||||
-- 1. Add employeesso column to notifications table
|
||||
-- VARCHAR(100) to support multiple comma-separated 9-digit SSOs
|
||||
ALTER TABLE notifications ADD COLUMN employeesso VARCHAR(100) NULL;
|
||||
|
||||
-- 2. Add Recognition notification type
|
||||
INSERT INTO notificationtypes (typename, typedescription, typecolor, isactive)
|
||||
VALUES ('Recognition', 'Employee Achievement Recognition', 'recognition', 1);
|
||||
|
||||
-- Verify the changes
|
||||
SELECT * FROM notificationtypes WHERE typename = 'Recognition';
|
||||
DESCRIBE notifications;
|
||||
Reference in New Issue
Block a user