delete FROM cfg_tablas_vinculadas where substring(tabla, 1, 4) = 'tb_f';
delete FROM cfg_tablas_vinculadas where substring(tabla, 1, 4) = 'tb_b';


call str_cfg_alter_autoincremental_u('cfg_formulario_campos', 'formulario, tab, columna, orden') ;
call str_cfg_alter_autoincremental_u('cfg_formulario_columnas', 'formulario, orden') ;
call str_cfg_alter_autoincremental_u('cfg_formulario_detalle_b', 'formulario, id_detalle') ;
call str_cfg_alter_autoincremental_u('cfg_formulario_detalle_b_campos', 'formulario, id_detalle, orden') ;
call str_cfg_alter_autoincremental_u('cfg_formulario_detalle_campos', 'formulario, id_detalle') ;
call str_cfg_alter_autoincremental_u('cfg_formulario_tabs', 'formulario, orden') ;
