IO-1533 Resolve defaults check issue for production board.

This commit is contained in:
Patrick Fic
2021-11-18 09:19:34 -08:00
parent 45ab7543d5
commit 46abf01366
3 changed files with 16 additions and 12 deletions

View File

@@ -222,9 +222,11 @@ export function ProductionBoardKanbanComponent({
technician, technician,
card, card,
bodyshop, bodyshop,
(associationSettings && associationSettings &&
associationSettings.kanban_settings && associationSettings.kanban_settings &&
Object.keys(associationSettings.kanban_settings).length > 0) || { Object.keys(associationSettings.kanban_settings).length > 0
? associationSettings.kanban_settings
: {
ats: true, ats: true,
clm_no: true, clm_no: true,
compact: false, compact: false,

View File

@@ -0,0 +1 @@
alter table "public"."associations" alter column "kanban_settings" set default jsonb_build_object();

View File

@@ -0,0 +1 @@
alter table "public"."associations" alter column "kanban_settings" set default '{"ats": true, "clm_no": true, "compact": false, "ownr_nm": true, "sublets": true, "ins_co_nm": true, "production_note": true, "employeeassignments": true, "scheduled_completion": true}';