- Added bug reporting API router to main application. - Enhanced screenshot functionality in bug-report.js with timeout handling and dynamic loading of html2canvas library. - Improved screenshot capture strategies and error handling for better user experience. - Updated modal handling for bug reports to include screenshot previews and status messages. - Refactored code for better readability and maintainability. feat: implement user-specific case status and preferences - Created migration to allow dynamic case statuses in sag_sager table. - Added user_sag_list_preferences table for per-user preferences on case list filters. - Introduced user_menu_preferences table to manage per-user menu visibility preferences with triggers for updated_at timestamps.
13 lines
421 B
SQL
13 lines
421 B
SQL
-- Allow dynamic case statuses managed by settings instead of hard-coded DB enum-like check
|
|
-- Replaces legacy constraint that only allowed 'åben' and 'lukket'.
|
|
|
|
ALTER TABLE sag_sager
|
|
DROP CONSTRAINT IF EXISTS sag_sager_status_check;
|
|
|
|
ALTER TABLE sag_sager
|
|
DROP CONSTRAINT IF EXISTS sag_sager_status_nonempty_check;
|
|
|
|
ALTER TABLE sag_sager
|
|
ADD CONSTRAINT sag_sager_status_nonempty_check
|
|
CHECK (length(trim(status)) > 0);
|