dolibarr  20.0.0-alpha
Functions
upgrade2.php File Reference

Upgrade some data. More...

Go to the source code of this file.

Functions

if($db->connected) if($ret) 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)
 Correspondence des expeditions et des commandes clients dans la table llx_co_exp. More...
 
 migrate_commande_livraison ($db, $langs, $conf)
 Correspondence 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_element_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 assignment to owner. More...
 
 migrate_event_assignement_contact ($db, $langs, $conf)
 Migrate event assignment 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/Re-enable features modules. More...
 
 migrate_reload_menu ($db, $langs, $conf)
 Reload SQL menu file (if dynamic menus, if modified by version) More...
 
 migrate_user_photospath ()
 Migrate file from old path to new one for users. More...
 
 migrate_user_photospath2 ()
 Migrate file from old path users/99/file.jpg into users/99/photos/file.jpg. More...
 
 migrate_users_socialnetworks ()
 Migrate users fields facebook and co to socialnetworks. More...
 
 migrate_members_socialnetworks ()
 Migrate members fields facebook and co to socialnetworks Can be called only when version is 10.0. More...
 
 migrate_contacts_socialnetworks ()
 Migrate contacts fields facebook and co to socialnetworks Can be called only when version is 10.0. More...
 
 migrate_thirdparties_socialnetworks ()
 Migrate thirdparties fields facebook and co to socialnetworks Can be called only when version is 10.0. More...
 
 migrate_export_import_profiles ($mode='export')
 Migrate export and import profiles to fix field name that was renamed. More...
 
 migrate_contractdet_rank ()
 Migrate Rank into contract line. More...
 

Detailed Description

Upgrade some data.

Definition in file upgrade2.php.

Function Documentation

◆ migrate_actioncomm_element()

migrate_actioncomm_element (   $db,
  $langs,
  $conf 
)

Migrate link stored into fk_xxxx into fk_element and elementtype.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 3223 of file upgrade2.php.

◆ migrate_categorie_association()

migrate_categorie_association (   $db,
  $langs,
  $conf 
)

Migrate categorie association.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 3447 of file upgrade2.php.

◆ migrate_clean_association()

migrate_clean_association (   $db,
  $langs,
  $conf 
)

Delete duplicates in table categorie_association.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 3372 of file upgrade2.php.

◆ migrate_commande_deliveryaddress()

migrate_commande_deliveryaddress (   $db,
  $langs,
  $conf 
)

Migration du champ fk_adresse_livraison dans expedition 2.6 -> 2.7.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 2413 of file upgrade2.php.

◆ migrate_commande_expedition()

migrate_commande_expedition (   $db,
  $langs,
  $conf 
)

Correspondence des expeditions et des commandes clients dans la table llx_co_exp.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 2037 of file upgrade2.php.

◆ migrate_commande_livraison()

migrate_commande_livraison (   $db,
  $langs,
  $conf 
)

Correspondence des livraisons et des commandes clients dans la table llx_co_liv.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 2102 of file upgrade2.php.

◆ migrate_contacts_socialnetworks()

migrate_contacts_socialnetworks ( )

Migrate contacts fields facebook and co to socialnetworks Can be called only when version is 10.0.

  • or lower. Fields does not exists after.
Returns
void

Definition at line 4752 of file upgrade2.php.

◆ migrate_contractdet_rank()

migrate_contractdet_rank ( )

Migrate Rank into contract line.

Returns
void

Definition at line 5009 of file upgrade2.php.

◆ migrate_contracts_date1()

migrate_contracts_date1 (   $db,
  $langs,
  $conf 
)

Mise a jour des date de contrats non renseignees.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 1226 of file upgrade2.php.

◆ migrate_contracts_date2()

migrate_contracts_date2 (   $db,
  $langs,
  $conf 
)

Update contracts with date min real if service date is lower.

Parameters
DoliDB$dbDatabase handler
Translate$langsLanguage
Conf$confConf
Returns
void

Definition at line 1268 of file upgrade2.php.

◆ migrate_contracts_date3()

migrate_contracts_date3 (   $db,
  $langs,
  $conf 
)

Mise a jour des dates de creation de contrat.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 1336 of file upgrade2.php.

◆ migrate_contracts_det()

migrate_contracts_det (   $db,
  $langs,
  $conf 
)

Mise a jour des contrats (gestion du contrat + detail de contrat)

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 1067 of file upgrade2.php.

◆ migrate_contracts_open()

migrate_contracts_open (   $db,
  $langs,
  $conf 
)

Reouverture des contrats qui ont au moins une ligne non fermee.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 1366 of file upgrade2.php.

◆ migrate_customerorder_shipping()

migrate_customerorder_shipping (   $db,
  $langs,
  $conf 
)

Migrate order ref_customer and date_delivery fields to llx_expedition.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 2971 of file upgrade2.php.

◆ migrate_delete_old_dir()

migrate_delete_old_dir (   $db,
  $langs,
  $conf 
)

Remove deprecated directories.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
boolean

Definition at line 4159 of file upgrade2.php.

◆ migrate_delete_old_files()

migrate_delete_old_files (   $db,
  $langs,
  $conf 
)

Delete deprecated files.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
boolean

Definition at line 4054 of file upgrade2.php.

◆ migrate_detail_livraison()

migrate_detail_livraison (   $db,
  $langs,
  $conf 
)

Migration des details commandes dans les details livraisons.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 2182 of file upgrade2.php.

◆ migrate_element_time()

migrate_element_time (   $db,
  $langs,
  $conf 
)

Migrate duration in seconds.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 2866 of file upgrade2.php.

◆ migrate_event_assignement()

migrate_event_assignement (   $db,
  $langs,
  $conf 
)

Migrate event assignment to owner.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 3513 of file upgrade2.php.

◆ migrate_event_assignement_contact()

migrate_event_assignement_contact (   $db,
  $langs,
  $conf 
)

Migrate event assignment to owner.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 3579 of file upgrade2.php.

◆ migrate_export_import_profiles()

migrate_export_import_profiles (   $mode = 'export')

Migrate export and import profiles to fix field name that was renamed.

Parameters
string$mode'export' or 'import'
Returns
void

Definition at line 4940 of file upgrade2.php.

◆ migrate_links_transfert()

migrate_links_transfert (   $db,
  $langs,
  $conf 
)

Function to migrate links into llx_bank_url.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 1152 of file upgrade2.php.

◆ migrate_members_socialnetworks()

migrate_members_socialnetworks ( )

Migrate members fields facebook and co to socialnetworks Can be called only when version is 10.0.

  • or lower. Fields does not exists after.
Returns
void

Definition at line 4660 of file upgrade2.php.

◆ migrate_menus()

migrate_menus (   $db,
  $langs,
  $conf 
)

Migration of menus (use only 1 table instead of 3) 2.6 -> 2.7.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 2346 of file upgrade2.php.

◆ migrate_mode_reglement()

migrate_mode_reglement (   $db,
  $langs,
  $conf 
)

Migrate link stored into fk_mode_reglement.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 3282 of file upgrade2.php.

◆ migrate_modeles()

migrate_modeles (   $db,
  $langs,
  $conf 
)

Mise a jour des modeles selectionnes.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 1979 of file upgrade2.php.

◆ migrate_paiementfourn_facturefourn()

migrate_paiementfourn_facturefourn (   $db,
  $langs,
  $conf 
)

Factures fournisseurs.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 1429 of file upgrade2.php.

◆ migrate_paiements()

if ( $db->connected) if ( $ret) migrate_paiements (   $db,
  $langs,
  $conf 
)

Reporte liens vers une facture de paiements sur table de jointure (lien n-n paiements factures)

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 754 of file upgrade2.php.

◆ migrate_paiements_orphelins_1()

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)

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 833 of file upgrade2.php.

◆ migrate_paiements_orphelins_2()

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)

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 943 of file upgrade2.php.

◆ migrate_price_commande()

migrate_price_commande (   $db,
  $langs,
  $conf 
)

Update total of sales order lines.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 1795 of file upgrade2.php.

◆ migrate_price_commande_fournisseur()

migrate_price_commande_fournisseur (   $db,
  $langs,
  $conf 
)

Update total of purchase order lines.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 1886 of file upgrade2.php.

◆ migrate_price_contrat()

migrate_price_contrat (   $db,
  $langs,
  $conf 
)

Update total of contract lines.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 1711 of file upgrade2.php.

◆ migrate_price_facture()

migrate_price_facture (   $db,
  $langs,
  $conf 
)

Update total of invoice lines.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 1525 of file upgrade2.php.

◆ migrate_price_propal()

migrate_price_propal (   $db,
  $langs,
  $conf 
)

Update total of proposal lines.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 1630 of file upgrade2.php.

◆ migrate_project_task_actors()

migrate_project_task_actors (   $db,
  $langs,
  $conf 
)

Migration de la table llx_projet_task_actors vers llx_element_contact.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 2705 of file upgrade2.php.

◆ migrate_project_user_resp()

migrate_project_user_resp (   $db,
  $langs,
  $conf 
)

Migration du champ fk_user_resp de llx_projet vers llx_element_contact.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 2624 of file upgrade2.php.

◆ migrate_relationship_tables()

migrate_relationship_tables (   $db,
  $langs,
  $conf,
  $table,
  $fk_source,
  $sourcetype,
  $fk_target,
  $targettype 
)

Migration des tables de relation.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
string$tableTable name
string$fk_sourceId of element source (name of field)
string$sourcetypeType of element source
string$fk_targetId of element target
string$targettypeType of element target
Returns
void

Definition at line 2787 of file upgrade2.php.

◆ migrate_reload_menu()

migrate_reload_menu (   $db,
  $langs,
  $conf 
)

Reload SQL menu file (if dynamic menus, if modified by version)

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
int Return integer <0 if KO, >0 if OK

Definition at line 4339 of file upgrade2.php.

◆ migrate_reload_modules()

migrate_reload_modules (   $db,
  $langs,
  $conf,
  $listofmodule = array(),
  $force = 0 
)

Disable/Re-enable features modules.

We must do this when internal menu of module or permissions has changed or when triggers have moved.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
array$listofmoduleList of modules, like array('MODULE_KEY_NAME'=>', $reloadmode)
int$force1=Reload module even if not already loaded
Returns
int Return integer <0 if KO, >0 if OK

Definition at line 4204 of file upgrade2.php.

◆ migrate_remise_entity()

migrate_remise_entity (   $db,
  $langs,
  $conf 
)

Migrate to add entity value into llx_societe_remise.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 3745 of file upgrade2.php.

◆ migrate_remise_except_entity()

migrate_remise_except_entity (   $db,
  $langs,
  $conf 
)

Migrate to add entity value into llx_societe_remise_except.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 3811 of file upgrade2.php.

◆ migrate_rename_directories()

migrate_rename_directories (   $db,
  $langs,
  $conf,
  $oldname,
  $newname 
)

Migration directory.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
string$oldnameOld name (relative to DOL_DATA_ROOT)
string$newnameNew name (relative to DOL_DATA_ROOT)
Returns
void

Definition at line 4035 of file upgrade2.php.

◆ migrate_reset_blocked_log()

migrate_reset_blocked_log (   $db,
  $langs,
  $conf 
)

Migrate to reset the blocked log for V7+ algorithm.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 3646 of file upgrade2.php.

◆ migrate_restore_missing_links()

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.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
integer Return integer <0 if KO, 0=Bad version, >0 if OK

Definition at line 2483 of file upgrade2.php.

◆ migrate_shipping_delivery()

migrate_shipping_delivery (   $db,
  $langs,
  $conf 
)

Migrate link stored into fk_expedition into llx_element_element.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 3055 of file upgrade2.php.

◆ migrate_shipping_delivery2()

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.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 3150 of file upgrade2.php.

◆ migrate_stocks()

migrate_stocks (   $db,
  $langs,
  $conf 
)

Migration du champ stock dans produits.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 2284 of file upgrade2.php.

◆ migrate_thirdparties_socialnetworks()

migrate_thirdparties_socialnetworks ( )

Migrate thirdparties fields facebook and co to socialnetworks Can be called only when version is 10.0.

  • or lower. Fields does not exists after.
Returns
void

Definition at line 4848 of file upgrade2.php.

◆ migrate_user_photospath()

migrate_user_photospath ( )

Migrate file from old path to new one for users.

Returns
void

Definition at line 4376 of file upgrade2.php.

◆ migrate_user_photospath2()

migrate_user_photospath2 ( )

Migrate file from old path users/99/file.jpg into users/99/photos/file.jpg.

Returns
void

Definition at line 4465 of file upgrade2.php.

◆ migrate_user_rights_entity()

migrate_user_rights_entity (   $db,
  $langs,
  $conf 
)

Migrate to add entity value into llx_user_rights.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 3903 of file upgrade2.php.

◆ migrate_usergroup_rights_entity()

migrate_usergroup_rights_entity (   $db,
  $langs,
  $conf 
)

Migrate to add entity value into llx_usergroup_rights.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
Returns
void

Definition at line 3968 of file upgrade2.php.

◆ migrate_users_socialnetworks()

migrate_users_socialnetworks ( )

Migrate users fields facebook and co to socialnetworks.

Can be called only when version is 10.0.* or lower. Fields does not exists after.

Returns
void

Definition at line 4569 of file upgrade2.php.