Update key column references and enhance error handling in static synchronization functions

This commit modifies key column references in the `fxStaticSyncTableDefinitions` function to align with updated database schema identifiers. Additionally, it introduces a new utility function, `fxStaticSyncKeyColumnsValid`, to validate key columns before executing queries, improving error handling in the `fxStaticSyncFetchRowsByKey` and `fxStaticSyncLoadKeyedRows` functions. The changes aim to enhance the robustness of the synchronization process and provide clearer error feedback during data operations.
This commit is contained in:
2026-07-06 15:34:20 -04:00
parent 2792b06d79
commit a8274dd640
2 changed files with 50 additions and 8 deletions

View File

@ -77,13 +77,13 @@ function fxStaticSyncTableDefinitions() {
array(
'table' => 'modes_remboursements',
'label' => 'Modes remboursement',
'keys' => array('mod_id'),
'keys' => array('mr_id'),
'ignore_cols' => array(),
),
array(
'table' => 'types_remboursements',
'label' => 'Types remboursement',
'keys' => array('typ_id'),
'keys' => array('tr_id'),
'ignore_cols' => array(),
),
array(