|
dolibarr
13.0.2
|
Upgrade some data. More...
Go to the source code of this file.
Functions | |
| migrate_paiements ($db, $langs, $conf) | |
| Reporte liens vers une facture de paiements sur table de jointure (lien n-n paiements factures) More... | |
| migrate_paiements_orphelins_1 ($db, $langs, $conf) | |
| Corrige paiement orphelins (liens paumes suite a bugs) Pour verifier s'il reste des orphelins: select * from llx_paiement as p left join llx_paiement_facture as pf on pf.fk_paiement=p.rowid WHERE pf.rowid IS NULL AND (p.fk_facture = 0 OR p.fk_facture IS NULL) More... | |
| migrate_paiements_orphelins_2 ($db, $langs, $conf) | |
| Corrige paiement orphelins (liens paumes suite a bugs) Pour verifier s'il reste des orphelins: select * from llx_paiement as p left join llx_paiement_facture as pf on pf.fk_paiement=p.rowid WHERE pf.rowid IS NULL AND (p.fk_facture = 0 OR p.fk_facture IS NULL) More... | |
| migrate_contracts_det ($db, $langs, $conf) | |
| Mise a jour des contrats (gestion du contrat + detail de contrat) More... | |
| migrate_links_transfert ($db, $langs, $conf) | |
| Function to migrate links into llx_bank_url. More... | |
| migrate_contracts_date1 ($db, $langs, $conf) | |
| Mise a jour des date de contrats non renseignees. More... | |
| migrate_contracts_date2 ($db, $langs, $conf) | |
| Update contracts with date min real if service date is lower. More... | |
| migrate_contracts_date3 ($db, $langs, $conf) | |
| Mise a jour des dates de creation de contrat. More... | |
| migrate_contracts_open ($db, $langs, $conf) | |
| Reouverture des contrats qui ont au moins une ligne non fermee. More... | |
| migrate_paiementfourn_facturefourn ($db, $langs, $conf) | |
| Factures fournisseurs. More... | |
| migrate_price_facture ($db, $langs, $conf) | |
| Update total of invoice lines. More... | |
| migrate_price_propal ($db, $langs, $conf) | |
| Update total of proposal lines. More... | |
| migrate_price_contrat ($db, $langs, $conf) | |
| Update total of contract lines. More... | |
| migrate_price_commande ($db, $langs, $conf) | |
| Update total of sales order lines. More... | |
| migrate_price_commande_fournisseur ($db, $langs, $conf) | |
| Update total of purchase order lines. More... | |
| migrate_modeles ($db, $langs, $conf) | |
| Mise a jour des modeles selectionnes. More... | |
| migrate_commande_expedition ($db, $langs, $conf) | |
| Correspondance des expeditions et des commandes clients dans la table llx_co_exp. More... | |
| migrate_commande_livraison ($db, $langs, $conf) | |
| Correspondance des livraisons et des commandes clients dans la table llx_co_liv. More... | |
| migrate_detail_livraison ($db, $langs, $conf) | |
| Migration des details commandes dans les details livraisons. More... | |
| migrate_stocks ($db, $langs, $conf) | |
| Migration du champ stock dans produits. More... | |
| migrate_menus ($db, $langs, $conf) | |
| Migration of menus (use only 1 table instead of 3) 2.6 -> 2.7. More... | |
| migrate_commande_deliveryaddress ($db, $langs, $conf) | |
| Migration du champ fk_adresse_livraison dans expedition 2.6 -> 2.7. More... | |
| migrate_restore_missing_links ($db, $langs, $conf) | |
| Migration du champ fk_remise_except dans llx_facturedet doit correspondre a lien dans llx_societe_remise_except vers llx_facturedet. More... | |
| migrate_project_user_resp ($db, $langs, $conf) | |
| Migration du champ fk_user_resp de llx_projet vers llx_element_contact. More... | |
| migrate_project_task_actors ($db, $langs, $conf) | |
| Migration de la table llx_projet_task_actors vers llx_element_contact. More... | |
| migrate_relationship_tables ($db, $langs, $conf, $table, $fk_source, $sourcetype, $fk_target, $targettype) | |
| Migration des tables de relation. More... | |
| migrate_project_task_time ($db, $langs, $conf) | |
| Migrate duration in seconds. More... | |
| migrate_customerorder_shipping ($db, $langs, $conf) | |
| Migrate order ref_customer and date_delivery fields to llx_expedition. More... | |
| migrate_shipping_delivery ($db, $langs, $conf) | |
| Migrate link stored into fk_expedition into llx_element_element. More... | |
| migrate_shipping_delivery2 ($db, $langs, $conf) | |
| We try to complete field ref_customer and date_delivery that are empty into llx_livraison. More... | |
| migrate_actioncomm_element ($db, $langs, $conf) | |
| Migrate link stored into fk_xxxx into fk_element and elementtype. More... | |
| migrate_mode_reglement ($db, $langs, $conf) | |
| Migrate link stored into fk_mode_reglement. More... | |
| migrate_clean_association ($db, $langs, $conf) | |
| Delete duplicates in table categorie_association. More... | |
| migrate_categorie_association ($db, $langs, $conf) | |
| Migrate categorie association. More... | |
| migrate_event_assignement ($db, $langs, $conf) | |
| Migrate event assignement to owner. More... | |
| migrate_event_assignement_contact ($db, $langs, $conf) | |
| Migrate event assignement to owner. More... | |
| migrate_reset_blocked_log ($db, $langs, $conf) | |
| Migrate to reset the blocked log for V7+ algorithm. More... | |
| migrate_remise_entity ($db, $langs, $conf) | |
| Migrate to add entity value into llx_societe_remise. More... | |
| migrate_remise_except_entity ($db, $langs, $conf) | |
| Migrate to add entity value into llx_societe_remise_except. More... | |
| migrate_user_rights_entity ($db, $langs, $conf) | |
| Migrate to add entity value into llx_user_rights. More... | |
| migrate_usergroup_rights_entity ($db, $langs, $conf) | |
| Migrate to add entity value into llx_usergroup_rights. More... | |
| migrate_rename_directories ($db, $langs, $conf, $oldname, $newname) | |
| Migration directory. More... | |
| migrate_delete_old_files ($db, $langs, $conf) | |
| Delete deprecated files. More... | |
| migrate_delete_old_dir ($db, $langs, $conf) | |
| Remove deprecated directories. More... | |
| migrate_reload_modules ($db, $langs, $conf, $listofmodule=array(), $force=0) | |
| Disable/Reenable features modules. More... | |
| migrate_reload_menu ($db, $langs, $conf) | |
| Reload menu if dynamic menus, if modified by version. More... | |
| migrate_user_photospath () | |
| Migrate file from old path to new one for users. More... | |
| migrate_users_socialnetworks () | |
| Migrate users fields facebook and co to socialnetworks. More... | |
| migrate_members_socialnetworks () | |
| Migrate members fields facebook and co to socialnetworks. More... | |
| migrate_contacts_socialnetworks () | |
| Migrate contacts fields facebook and co to socialnetworks. More... | |
| migrate_thirdparties_socialnetworks () | |
| Migrate thirdparties fields facebook and co to socialnetworks. More... | |
Upgrade some data.
Definition in file upgrade2.php.
| migrate_actioncomm_element | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Migrate link stored into fk_xxxx into fk_element and elementtype.
Definition at line 3262 of file upgrade2.php.
References $resql, dol_print_error(), dolibarr_install_syslog(), and print.
| migrate_categorie_association | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Migrate categorie association.
Definition at line 3502 of file upgrade2.php.
References $resql, dol_print_error(), dolibarr_install_syslog(), and print.
| migrate_clean_association | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Delete duplicates in table categorie_association.
Definition at line 3419 of file upgrade2.php.
References $resql, dolibarr_install_syslog(), and print.
| migrate_commande_deliveryaddress | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Migration du champ fk_adresse_livraison dans expedition 2.6 -> 2.7.
Definition at line 2397 of file upgrade2.php.
References $resql, dol_print_error(), dolibarr_install_syslog(), and print.
| migrate_commande_expedition | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Correspondance des expeditions et des commandes clients dans la table llx_co_exp.
Definition at line 1988 of file upgrade2.php.
References $resql, dol_print_error(), dolibarr_install_syslog(), and print.
| migrate_commande_livraison | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Correspondance des livraisons et des commandes clients dans la table llx_co_liv.
Definition at line 2059 of file upgrade2.php.
References $resql, dol_print_error(), dolibarr_install_syslog(), and print.
| migrate_contacts_socialnetworks | ( | ) |
Migrate contacts fields facebook and co to socialnetworks.
Definition at line 4863 of file upgrade2.php.
References $resql, dol_print_error(), and print.
| migrate_contracts_date1 | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Mise a jour des date de contrats non renseignees.
Definition at line 1112 of file upgrade2.php.
References $resql, dol_print_error(), dolibarr_install_syslog(), and print.
| migrate_contracts_date2 | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Update contracts with date min real if service date is lower.
Definition at line 1146 of file upgrade2.php.
References $resql, dol_print_error(), dolibarr_install_syslog(), and print.
| migrate_contracts_date3 | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Mise a jour des dates de creation de contrat.
Definition at line 1214 of file upgrade2.php.
References $resql, dol_print_error(), dolibarr_install_syslog(), and print.
| migrate_contracts_det | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Mise a jour des contrats (gestion du contrat + detail de contrat)
Definition at line 943 of file upgrade2.php.
References $resql, dol_print_error(), dolibarr_install_syslog(), and print.
| migrate_contracts_open | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Reouverture des contrats qui ont au moins une ligne non fermee.
Definition at line 1240 of file upgrade2.php.
References $resql, dol_print_error(), dolibarr_install_syslog(), and print.
| migrate_customerorder_shipping | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Migrate order ref_customer and date_delivery fields to llx_expedition.
Definition at line 2991 of file upgrade2.php.
References $resql, dol_print_error(), dolibarr_install_syslog(), and print.
| migrate_delete_old_dir | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Remove deprecated directories.
Definition at line 4256 of file upgrade2.php.
References dol_delete_dir_recursive(), dolibarr_install_syslog(), and print.
| migrate_delete_old_files | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Delete deprecated files.
Definition at line 4170 of file upgrade2.php.
References dol_delete_file(), dolibarr_install_syslog(), and print.
| migrate_detail_livraison | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Migration des details commandes dans les details livraisons.
Definition at line 2146 of file upgrade2.php.
References $resql, dol_print_error(), dolibarr_install_syslog(), and print.
| migrate_event_assignement | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Migrate event assignement to owner.
Definition at line 3587 of file upgrade2.php.
References $resql, dol_print_error(), dolibarr_install_syslog(), and print.
| migrate_event_assignement_contact | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Migrate event assignement to owner.
Definition at line 3658 of file upgrade2.php.
References $resql, dol_print_error(), dolibarr_install_syslog(), and print.
| migrate_links_transfert | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Function to migrate links into llx_bank_url.
Definition at line 1033 of file upgrade2.php.
References $resql, dol_print_error(), dolibarr_install_syslog(), and print.
| migrate_members_socialnetworks | ( | ) |
Migrate members fields facebook and co to socialnetworks.
Definition at line 4772 of file upgrade2.php.
References $resql, dol_print_error(), and print.
| migrate_menus | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Migration of menus (use only 1 table instead of 3) 2.6 -> 2.7.
Definition at line 2324 of file upgrade2.php.
References $resql, dol_print_error(), dolibarr_install_syslog(), and print.
| migrate_mode_reglement | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Migrate link stored into fk_mode_reglement.
Definition at line 3324 of file upgrade2.php.
References $resql, dol_print_error(), dolibarr_install_syslog(), and print.
| migrate_modeles | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Mise a jour des modeles selectionnes.
Definition at line 1930 of file upgrade2.php.
References $resql, dol_print_error(), dolibarr_install_syslog(), ModelePDFCommandes\liste_modeles(), and ModelePDFFactures\liste_modeles().
| migrate_paiementfourn_facturefourn | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Factures fournisseurs.
Definition at line 1297 of file upgrade2.php.
References dolibarr_install_syslog(), and print.
| migrate_paiements | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) | -> close() |
Reporte liens vers une facture de paiements sur table de jointure (lien n-n paiements factures)
Definition at line 609 of file upgrade2.php.
References $resql, dol_print_error(), dolibarr_install_syslog(), and print.
| migrate_paiements_orphelins_1 | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Corrige paiement orphelins (liens paumes suite a bugs) Pour verifier s'il reste des orphelins: select * from llx_paiement as p left join llx_paiement_facture as pf on pf.fk_paiement=p.rowid WHERE pf.rowid IS NULL AND (p.fk_facture = 0 OR p.fk_facture IS NULL)
Definition at line 695 of file upgrade2.php.
References $resql, dol_print_error(), dolibarr_install_syslog(), and print.
| migrate_paiements_orphelins_2 | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Corrige paiement orphelins (liens paumes suite a bugs) Pour verifier s'il reste des orphelins: select * from llx_paiement as p left join llx_paiement_facture as pf on pf.fk_paiement=p.rowid WHERE pf.rowid IS NULL AND (p.fk_facture = 0 OR p.fk_facture IS NULL)
Definition at line 812 of file upgrade2.php.
References $resql, dol_print_error(), dolibarr_install_syslog(), and print.
| migrate_price_commande | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Update total of sales order lines.
Definition at line 1704 of file upgrade2.php.
References $resql, calcul_price_total(), dolibarr_install_syslog(), and print.
| migrate_price_commande_fournisseur | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Update total of purchase order lines.
Definition at line 1817 of file upgrade2.php.
References $resql, calcul_price_total(), dolibarr_install_syslog(), and print.
| migrate_price_contrat | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Update total of contract lines.
Definition at line 1619 of file upgrade2.php.
References $resql, calcul_price_total(), dolibarr_install_syslog(), and print.
| migrate_price_facture | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Update total of invoice lines.
Definition at line 1404 of file upgrade2.php.
References $resql, calcul_price_total(), dolibarr_install_syslog(), and print.
| migrate_price_propal | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Update total of proposal lines.
Definition at line 1515 of file upgrade2.php.
References $resql, calcul_price_total(), dolibarr_install_syslog(), and print.
| migrate_project_task_actors | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Migration de la table llx_projet_task_actors vers llx_element_contact.
Definition at line 2707 of file upgrade2.php.
References $resql, dol_now(), dol_print_error(), dolibarr_install_syslog(), and print.
| migrate_project_task_time | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Migrate duration in seconds.
Definition at line 2882 of file upgrade2.php.
References $resql, dol_print_error(), dolibarr_install_syslog(), and print.
| migrate_project_user_resp | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Migration du champ fk_user_resp de llx_projet vers llx_element_contact.
Definition at line 2618 of file upgrade2.php.
References $resql, dol_now(), dol_print_error(), dolibarr_install_syslog(), and print.
| migrate_relationship_tables | ( | $db, | |
| $langs, | |||
| $conf, | |||
| $table, | |||
| $fk_source, | |||
| $sourcetype, | |||
| $fk_target, | |||
| $targettype | |||
| ) |
Migration des tables de relation.
| DoliDB | $db | Database handler |
| Translate | $langs | Object langs |
| Conf | $conf | Object conf |
| string | $table | Table name |
| int | $fk_source | Id of element source |
| string | $sourcetype | Type of element source |
| int | $fk_target | Id of element target |
| string | $targettype | Type of element target |
Definition at line 2796 of file upgrade2.php.
References $resql, dol_print_error(), dolibarr_install_syslog(), and print.
| migrate_reload_menu | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Reload menu if dynamic menus, if modified by version.
Definition at line 4539 of file upgrade2.php.
References dolibarr_install_syslog(), print, and run_sql().
| migrate_reload_modules | ( | $db, | |
| $langs, | |||
| $conf, | |||
$listofmodule = array(), |
|||
$force = 0 |
|||
| ) |
Disable/Reenable features modules.
We must do this when internal menu of module or permissions has changed or when triggers have moved.
| DoliDB | $db | Database handler |
| Translate | $langs | Object langs |
| Conf | $conf | Object conf |
| array | $listofmodule | List of modules |
| int | $force | 1=Reload module even if not already loaded |
Definition at line 4295 of file upgrade2.php.
References dol_include_once(), dolibarr_install_syslog(), and print.
| migrate_remise_entity | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Migrate to add entity value into llx_societe_remise.
Definition at line 3836 of file upgrade2.php.
References $resql, dol_print_error(), dolibarr_install_syslog(), and print.
| migrate_remise_except_entity | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Migrate to add entity value into llx_societe_remise_except.
Definition at line 3907 of file upgrade2.php.
References $resql, dol_print_error(), dolibarr_install_syslog(), and print.
| migrate_rename_directories | ( | $db, | |
| $langs, | |||
| $conf, | |||
| $oldname, | |||
| $newname | |||
| ) |
Migration directory.
| DoliDB | $db | Database handler |
| Translate | $langs | Object langs |
| Conf | $conf | Object conf |
| string | $oldname | Old name (relative to DOL_DATA_ROOT) |
| string | $newname | New name (relative to DOL_DATA_ROOT) |
Definition at line 4150 of file upgrade2.php.
References dolibarr_install_syslog().
| migrate_reset_blocked_log | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Migrate to reset the blocked log for V7+ algorithm.
Definition at line 3730 of file upgrade2.php.
References $resql, dol_now(), dol_print_error(), dolibarr_install_syslog(), and print.
| migrate_restore_missing_links | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Migration du champ fk_remise_except dans llx_facturedet doit correspondre a lien dans llx_societe_remise_except vers llx_facturedet.
Definition at line 2473 of file upgrade2.php.
References $resql, dol_print_error(), dolibarr_install_syslog(), print, and versioncompare().
| migrate_shipping_delivery | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Migrate link stored into fk_expedition into llx_element_element.
Definition at line 3082 of file upgrade2.php.
References $resql, dol_print_error(), dolibarr_install_syslog(), and print.
| migrate_shipping_delivery2 | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
We try to complete field ref_customer and date_delivery that are empty into llx_livraison.
We set them with value from llx_expedition.
Definition at line 3184 of file upgrade2.php.
References $resql, dol_print_error(), dolibarr_install_syslog(), and print.
| migrate_stocks | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Migration du champ stock dans produits.
Definition at line 2257 of file upgrade2.php.
References $resql, dol_print_error(), dolibarr_install_syslog(), and print.
| migrate_thirdparties_socialnetworks | ( | ) |
Migrate thirdparties fields facebook and co to socialnetworks.
Definition at line 4958 of file upgrade2.php.
References $resql, dol_print_error(), and print.
| migrate_user_photospath | ( | ) |
Migrate file from old path to new one for users.
Definition at line 4577 of file upgrade2.php.
References $resql, dol_copy(), dol_is_dir(), dol_is_file(), dol_mkdir(), dol_osencode(), get_exdir(), and print.
| migrate_user_rights_entity | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Migrate to add entity value into llx_user_rights.
Definition at line 4008 of file upgrade2.php.
References $resql, dol_print_error(), dolibarr_install_syslog(), and print.
| migrate_usergroup_rights_entity | ( | $db, | |
| $langs, | |||
| $conf | |||
| ) |
Migrate to add entity value into llx_usergroup_rights.
Definition at line 4078 of file upgrade2.php.
References $resql, dol_print_error(), dolibarr_install_syslog(), and print.
| migrate_users_socialnetworks | ( | ) |
Migrate users fields facebook and co to socialnetworks.
Definition at line 4682 of file upgrade2.php.
References $resql, dol_print_error(), and print.