feat(Director): add autoAdjustIncome feature and enhance director data handling
All checks were successful
Deploy to production / deploy (push) Successful in 1m54s
All checks were successful
Deploy to production / deploy (push) Successful in 1m54s
- Introduced a new boolean field `autoAdjustIncome` in the Director model to manage income adjustments automatically. - Updated the FalukantService to include `autoAdjustIncome` in director data responses and settings management. - Enhanced the DirectorInfo component to allow users to toggle the `autoAdjustIncome` setting. - Updated internationalization files to include translations for the new feature across multiple languages.
This commit is contained in:
15
backend/sql/add_director_auto_adjust_income.sql
Normal file
15
backend/sql/add_director_auto_adjust_income.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
-- Adds opt-in flag for automatic director salary adjustment (daemon-controlled)
|
||||
-- Default is OFF for all existing and future directors.
|
||||
|
||||
ALTER TABLE falukant_data.director
|
||||
ADD COLUMN IF NOT EXISTS auto_adjust_income boolean;
|
||||
|
||||
UPDATE falukant_data.director
|
||||
SET auto_adjust_income = false
|
||||
WHERE auto_adjust_income IS NULL;
|
||||
|
||||
ALTER TABLE falukant_data.director
|
||||
ALTER COLUMN auto_adjust_income SET DEFAULT false;
|
||||
|
||||
ALTER TABLE falukant_data.director
|
||||
ALTER COLUMN auto_adjust_income SET NOT NULL;
|
||||
Reference in New Issue
Block a user