In this case, there is no quick way to make children inherit the parent node configuration? This means if I have the root set as FLX, all children that were null get set to FLX, if a set a node in the subtree, this subtree get converted, etc.
Setting root to FLX:
Tree_id | Name | Node_id | Parent | Code
1 | A | 1 | NULL | FLX
1 | B | 2 | 1 | FLX
1 | C | 3 | 1 | FLX
1 | D | 4 | 2 | FLX
1 | E | 5 | 3 | FLX
Setting B to RIG:
Tree_id | Name | Node_id | Parent | Code
1 | A | 1 | NULL | FLX
1 | B | 2 | 1 | RIG
1 | C | 3 | 1 | FLX
1 | D | 4 | 2 | RIG
1 | E | 5 | 3 | FLX
Cheers!