diff --git a/mysql/drop.sql b/mysql/drop.sql index 7a4779b34f3..99d1e020538 100644 --- a/mysql/drop.sql +++ b/mysql/drop.sql @@ -18,7 +18,9 @@ -- $Id$ -- $Source$ -- - +-- +-- L'ordre des suppressions doit respecter les contraintes d'integrite +-- drop table if exists llx_co_fa; drop table if exists llx_co_pr; @@ -31,8 +33,6 @@ drop table if exists llx_c_effectif; drop table if exists llx_c_paiement ; -drop table if exists llx_c_pays ; - drop table if exists llx_c_prestatype ; drop table if exists llx_c_propalst ; @@ -81,8 +81,6 @@ drop table if exists llx_boxes_def; drop table if exists llx_chargesociales; -drop table if exists llx_contrat; - drop table if exists llx_commande; drop table if exists llx_commandedet; @@ -127,8 +125,6 @@ drop table if exists llx_expeditiondet; drop table if exists llx_fa_pr; -drop table if exists llx_facture; - drop table if exists llx_facture_rec; drop table if exists llx_facturedet; @@ -155,24 +151,16 @@ drop table if exists llx_notify ; drop table if exists llx_notify_def; -drop table if exists llx_paiement; - drop table if exists llx_paiementfourn; drop table if exists llx_pointmort; -drop table if exists llx_product; - drop table if exists llx_product_fournisseur; drop table if exists llx_product_price; drop table if exists llx_product_stock; -drop table if exists llx_projet; - -drop table if exists llx_propal; - drop table if exists llx_propal_model_pdf; drop table if exists llx_propaldet; @@ -181,8 +169,6 @@ drop table if exists llx_rights_def; drop table if exists llx_service; -drop table if exists llx_societe; - drop table if exists llx_societe_ca; drop table if exists llx_societe_details; @@ -219,8 +205,6 @@ drop table if exists llx_transaction_bplc ; drop table if exists llx_tva; -drop table if exists llx_user; - drop table if exists llx_user_rights; drop table if exists llx_ventes; @@ -316,13 +300,42 @@ drop table if exists llx_telephonie_tarif; drop table if exists llx_telephonie_tarif_client; drop table if exists llx_telephonie_tarif_fournisseur; - - drop table if exists llx_categorie_association; drop table if exists llx_categorie_product; drop table if exists llx_product_fournisseur_price_log; drop table if exists llx_categorie; +drop table if exists llx_accountingsystem_det; + +drop table if exists llx_accountingsystem; + +drop table if exists llx_dolibarr_modules; + +drop table if exists llx_energie_compteur_groupe; + +drop table if exists llx_energie_compteur_releve; + +drop table if exists llx_energie_groupe; + +drop table if exists llx_energie_compteur; + +drop table if exists llx_propal; + +drop table if exists llx_product; + +drop table if exists llx_facture; + +drop table if exists llx_contrat; + +drop table if exists llx_paiement; + +drop table if exists llx_c_pays ; + +drop table if exists llx_projet; + +drop table if exists llx_societe; + +drop table if exists llx_user; -- historique