From e58a61d588af93e3f385b45101243061cc56912d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 10 Sep 2008 19:57:07 +0000 Subject: [PATCH] Remove files not required. Now conversion between database syntax is done in real time during install. --- pgsql/data/Makefile | 34 - pgsql/data/data.sql | 790 ------------------ pgsql/tables/llx_accountingaccount.key.sql | 30 - pgsql/tables/llx_accountingaccount.sql | 34 - pgsql/tables/llx_accountingdebcred.sql | 31 - pgsql/tables/llx_accountingsystem.sql | 34 - pgsql/tables/llx_accountingtransaction.sql | 36 - pgsql/tables/llx_action_def.sql | 35 - pgsql/tables/llx_actioncomm.key.sql | 29 - pgsql/tables/llx_actioncomm.sql | 66 -- pgsql/tables/llx_adherent.sql | 65 -- pgsql/tables/llx_adherent_options.sql | 35 - pgsql/tables/llx_adherent_options_label.sql | 31 - pgsql/tables/llx_adherent_type.key.sql | 26 - pgsql/tables/llx_adherent_type.sql | 40 - pgsql/tables/llx_appro.sql | 35 - pgsql/tables/llx_bank.sql | 46 - pgsql/tables/llx_bank_account.key.sql | 26 - pgsql/tables/llx_bank_account.sql | 57 -- pgsql/tables/llx_bank_categ.sql | 29 - pgsql/tables/llx_bank_class.sql | 32 - pgsql/tables/llx_bank_url.key.sql | 28 - pgsql/tables/llx_bank_url.sql | 34 - pgsql/tables/llx_bookmark.key.sql | 27 - pgsql/tables/llx_bookmark.sql | 35 - pgsql/tables/llx_bordereau_cheque.sql | 41 - pgsql/tables/llx_boxes.key.sql | 33 - pgsql/tables/llx_boxes.sql | 38 - pgsql/tables/llx_boxes_def.sql | 31 - pgsql/tables/llx_c_actioncomm.sql | 35 - pgsql/tables/llx_c_barcode_type.sql | 33 - pgsql/tables/llx_c_chargesociales.sql | 36 - pgsql/tables/llx_c_civilite.sql | 33 - pgsql/tables/llx_c_currencies.key.sql | 26 - pgsql/tables/llx_c_currencies.sql | 32 - pgsql/tables/llx_c_departements.key.sql | 29 - pgsql/tables/llx_c_departements.sql | 39 - pgsql/tables/llx_c_ecotaxe.sql | 34 - pgsql/tables/llx_c_effectif.sql | 33 - pgsql/tables/llx_c_forme_juridique.sql | 36 - .../llx_c_methode_commande_fournisseur.sql | 37 - pgsql/tables/llx_c_paiement.sql | 43 - pgsql/tables/llx_c_paper_format.sql | 42 - pgsql/tables/llx_c_pays.key.sql | 28 - pgsql/tables/llx_c_pays.sql | 33 - pgsql/tables/llx_c_propalst.sql | 33 - pgsql/tables/llx_c_prospectlevel.sql | 32 - pgsql/tables/llx_c_regions.key.sql | 27 - pgsql/tables/llx_c_regions.sql | 36 - pgsql/tables/llx_c_stcomm.sql | 33 - pgsql/tables/llx_c_tva.sql | 35 - pgsql/tables/llx_c_type_contact.key.sql | 37 - pgsql/tables/llx_c_type_contact.sql | 43 - pgsql/tables/llx_c_type_fees.sql | 32 - pgsql/tables/llx_c_typent.sql | 32 - pgsql/tables/llx_categorie.key.sql | 25 - pgsql/tables/llx_categorie.sql | 34 - .../tables/llx_categorie_association.key.sql | 32 - pgsql/tables/llx_categorie_association.sql | 30 - pgsql/tables/llx_categorie_fournisseur.sql | 32 - pgsql/tables/llx_categorie_product.key.sql | 32 - pgsql/tables/llx_categorie_product.sql | 30 - pgsql/tables/llx_categorie_societe.key.sql | 30 - pgsql/tables/llx_categorie_societe.sql | 29 - pgsql/tables/llx_chargesociales.sql | 37 - pgsql/tables/llx_co_exp.sql | 35 - pgsql/tables/llx_co_fa.sql | 34 - pgsql/tables/llx_co_liv.sql | 35 - pgsql/tables/llx_co_pr.sql | 30 - pgsql/tables/llx_commande.key.sql | 30 - pgsql/tables/llx_commande.sql | 63 -- pgsql/tables/llx_commande_fournisseur.key.sql | 32 - pgsql/tables/llx_commande_fournisseur.sql | 54 -- .../llx_commande_fournisseur_dispatch.key.sql | 25 - .../llx_commande_fournisseur_dispatch.sql | 34 - pgsql/tables/llx_commande_fournisseur_log.sql | 33 - pgsql/tables/llx_commande_fournisseurdet.sql | 43 - pgsql/tables/llx_commandedet.key.sql | 30 - pgsql/tables/llx_commandedet.sql | 55 -- pgsql/tables/llx_compta.sql | 38 - pgsql/tables/llx_compta_account.sql | 34 - pgsql/tables/llx_compta_compte_generaux.sql | 37 - pgsql/tables/llx_cond_reglement.sql | 36 - pgsql/tables/llx_const.sql | 43 - pgsql/tables/llx_contrat.key.sql | 36 - pgsql/tables/llx_contrat.sql | 47 -- pgsql/tables/llx_contratdet.key.sql | 34 - pgsql/tables/llx_contratdet.sql | 61 -- pgsql/tables/llx_contratdet_log.key.sql | 28 - pgsql/tables/llx_contratdet_log.sql | 35 - pgsql/tables/llx_cotisation.key.sql | 25 - pgsql/tables/llx_cotisation.sql | 36 - pgsql/tables/llx_deplacement.sql | 37 - pgsql/tables/llx_document.sql | 36 - pgsql/tables/llx_document_generator.sql | 32 - pgsql/tables/llx_document_model.key.sql | 26 - pgsql/tables/llx_document_model.sql | 35 - pgsql/tables/llx_dolibarr_modules.sql | 34 - pgsql/tables/llx_domain.sql | 32 - pgsql/tables/llx_don.sql | 48 -- pgsql/tables/llx_don_projet.sql | 33 - pgsql/tables/llx_droitpret_rapport.sql | 35 - pgsql/tables/llx_ecm_directories.sql | 38 - pgsql/tables/llx_ecm_documents.sql | 45 - pgsql/tables/llx_element_contact.key.sql | 37 - pgsql/tables/llx_element_contact.sql | 39 - pgsql/tables/llx_element_element.key.sql | 33 - pgsql/tables/llx_element_element.sql | 36 - pgsql/tables/llx_energie_compteur.sql | 34 - pgsql/tables/llx_energie_compteur_groupe.sql | 29 - pgsql/tables/llx_energie_compteur_releve.sql | 35 - pgsql/tables/llx_energie_groupe.sql | 33 - pgsql/tables/llx_entrepot.sql | 42 - pgsql/tables/llx_entrepot_valorisation.sql | 33 - pgsql/tables/llx_events.key.sql | 26 - pgsql/tables/llx_events.sql | 43 - pgsql/tables/llx_expedition.key.sql | 39 - pgsql/tables/llx_expedition.sql | 42 - pgsql/tables/llx_expedition_methode.sql | 33 - pgsql/tables/llx_expeditiondet.key.sql | 28 - pgsql/tables/llx_expeditiondet.sql | 34 - pgsql/tables/llx_export_compta.sql | 34 - pgsql/tables/llx_export_model.key.sql | 27 - pgsql/tables/llx_export_model.sql | 35 - pgsql/tables/llx_fa_pr.sql | 31 - pgsql/tables/llx_facture.key.sql | 39 - pgsql/tables/llx_facture.sql | 66 -- pgsql/tables/llx_facture_fourn.key.sql | 38 - pgsql/tables/llx_facture_fourn.sql | 56 -- pgsql/tables/llx_facture_fourn_det.key.sql | 30 - pgsql/tables/llx_facture_fourn_det.sql | 39 - pgsql/tables/llx_facture_rec.key.sql | 34 - pgsql/tables/llx_facture_rec.sql | 55 -- pgsql/tables/llx_facture_stats.sql | 32 - pgsql/tables/llx_facturedet.key.sql | 30 - pgsql/tables/llx_facturedet.sql | 58 -- pgsql/tables/llx_facturedet_rec.sql | 40 - pgsql/tables/llx_fichinter.key.sql | 27 - pgsql/tables/llx_fichinter.sql | 48 -- pgsql/tables/llx_fichinterdet.sql | 34 - pgsql/tables/llx_fournisseur_ca.sql | 35 - pgsql/tables/llx_groupesociete.sql | 37 - pgsql/tables/llx_groupesociete_remise.sql | 38 - pgsql/tables/llx_livraison.key.sql | 37 - pgsql/tables/llx_livraison.sql | 45 - pgsql/tables/llx_livraisondet.key.sql | 28 - pgsql/tables/llx_livraisondet.sql | 37 - pgsql/tables/llx_mailing.sql | 58 -- pgsql/tables/llx_mailing_cibles.key.sql | 26 - pgsql/tables/llx_mailing_cibles.sql | 38 - pgsql/tables/llx_menu.key.sql | 30 - pgsql/tables/llx_menu.sql | 51 -- pgsql/tables/llx_menu_const.key.sql | 33 - pgsql/tables/llx_menu_const.sql | 32 - pgsql/tables/llx_menu_constraint.sql | 30 - pgsql/tables/llx_notify.sql | 34 - pgsql/tables/llx_notify_def.sql | 33 - pgsql/tables/llx_osc_categories.sql | 35 - pgsql/tables/llx_osc_customer.key.sql | 26 - pgsql/tables/llx_osc_customer.sql | 33 - pgsql/tables/llx_osc_order.sql | 33 - pgsql/tables/llx_osc_product.sql | 35 - pgsql/tables/llx_paiement.sql | 47 -- pgsql/tables/llx_paiement_facture.key.sql | 34 - pgsql/tables/llx_paiement_facture.sql | 31 - pgsql/tables/llx_paiementcharge.sql | 40 - pgsql/tables/llx_paiementfourn.sql | 40 - .../llx_paiementfourn_facturefourn.key.sql | 28 - .../tables/llx_paiementfourn_facturefourn.sql | 33 - pgsql/tables/llx_pr_exp.sql | 35 - pgsql/tables/llx_pr_liv.sql | 35 - pgsql/tables/llx_prelevement_bons.sql | 49 -- pgsql/tables/llx_prelevement_facture.key.sql | 31 - pgsql/tables/llx_prelevement_facture.sql | 31 - .../llx_prelevement_facture_demande.sql | 42 - pgsql/tables/llx_prelevement_lignes.key.sql | 31 - pgsql/tables/llx_prelevement_lignes.sql | 41 - .../tables/llx_prelevement_notifications.sql | 39 - pgsql/tables/llx_prelevement_rejet.sql | 36 - pgsql/tables/llx_product.key.sql | 28 - pgsql/tables/llx_product.sql | 55 -- pgsql/tables/llx_product_ca.sql | 34 - pgsql/tables/llx_product_cnv_livre.sql | 49 -- .../tables/llx_product_cnv_livre_contrat.sql | 40 - pgsql/tables/llx_product_det.sql | 33 - pgsql/tables/llx_product_fournisseur.key.sql | 29 - pgsql/tables/llx_product_fournisseur.sql | 35 - .../llx_product_fournisseur_price.key.sql | 33 - .../tables/llx_product_fournisseur_price.sql | 36 - .../llx_product_fournisseur_price_log.sql | 34 - pgsql/tables/llx_product_price.sql | 39 - pgsql/tables/llx_product_stock.key.sql | 29 - pgsql/tables/llx_product_stock.sql | 33 - pgsql/tables/llx_product_subproduct.sql | 34 - pgsql/tables/llx_projet.sql | 42 - pgsql/tables/llx_projet_task.sql | 35 - pgsql/tables/llx_projet_task_actors.sql | 34 - pgsql/tables/llx_projet_task_time.sql | 33 - pgsql/tables/llx_propal.key.sql | 30 - pgsql/tables/llx_propal.sql | 62 -- pgsql/tables/llx_propaldet.sql | 55 -- pgsql/tables/llx_rights_def.sql | 35 - pgsql/tables/llx_societe.key.sql | 32 - pgsql/tables/llx_societe.sql | 76 -- .../tables/llx_societe_adresse_livraison.sql | 43 - pgsql/tables/llx_societe_commerciaux.sql | 33 - pgsql/tables/llx_societe_consult.sql | 35 - pgsql/tables/llx_societe_log.sql | 35 - pgsql/tables/llx_societe_prices.sql | 33 - pgsql/tables/llx_societe_remise.sql | 38 - .../tables/llx_societe_remise_except.key.sql | 44 - pgsql/tables/llx_societe_remise_except.sql | 42 - pgsql/tables/llx_societe_rib.sql | 44 - pgsql/tables/llx_socpeople.key.sql | 30 - pgsql/tables/llx_socpeople.sql | 51 -- pgsql/tables/llx_stock_mouvement.key.sql | 29 - pgsql/tables/llx_stock_mouvement.sql | 37 - pgsql/tables/llx_stock_valorisation.key.sql | 28 - pgsql/tables/llx_stock_valorisation.sql | 39 - pgsql/tables/llx_surveys_answers.sql | 34 - .../llx_surveys_answers_summary.key.sql | 25 - pgsql/tables/llx_surveys_answers_summary.sql | 24 - pgsql/tables/llx_surveys_questions.sql | 35 - pgsql/tables/llx_texts.sql | 40 - pgsql/tables/llx_transaction_bplc.sql | 38 - pgsql/tables/llx_tva.sql | 37 - pgsql/tables/llx_user.key.sql | 33 - pgsql/tables/llx_user.sql | 58 -- pgsql/tables/llx_user_alert.sql | 32 - pgsql/tables/llx_user_clicktodial.sql | 35 - pgsql/tables/llx_user_entrepot.sql | 32 - pgsql/tables/llx_user_param.sql | 36 - pgsql/tables/llx_user_rights.key.sql | 31 - pgsql/tables/llx_user_rights.sql | 43 - pgsql/tables/llx_usergroup.sql | 34 - pgsql/tables/llx_usergroup_rights.key.sql | 30 - pgsql/tables/llx_usergroup_rights.sql | 35 - pgsql/tables/llx_usergroup_user.sql | 34 - pgsql/tables/llx_voyage.sql | 48 -- pgsql/tables/llx_voyage_reduc.sql | 37 - 240 files changed, 9505 deletions(-) delete mode 100644 pgsql/data/Makefile delete mode 100644 pgsql/data/data.sql delete mode 100644 pgsql/tables/llx_accountingaccount.key.sql delete mode 100644 pgsql/tables/llx_accountingaccount.sql delete mode 100644 pgsql/tables/llx_accountingdebcred.sql delete mode 100644 pgsql/tables/llx_accountingsystem.sql delete mode 100644 pgsql/tables/llx_accountingtransaction.sql delete mode 100644 pgsql/tables/llx_action_def.sql delete mode 100644 pgsql/tables/llx_actioncomm.key.sql delete mode 100644 pgsql/tables/llx_actioncomm.sql delete mode 100644 pgsql/tables/llx_adherent.sql delete mode 100644 pgsql/tables/llx_adherent_options.sql delete mode 100644 pgsql/tables/llx_adherent_options_label.sql delete mode 100644 pgsql/tables/llx_adherent_type.key.sql delete mode 100644 pgsql/tables/llx_adherent_type.sql delete mode 100644 pgsql/tables/llx_appro.sql delete mode 100644 pgsql/tables/llx_bank.sql delete mode 100644 pgsql/tables/llx_bank_account.key.sql delete mode 100644 pgsql/tables/llx_bank_account.sql delete mode 100644 pgsql/tables/llx_bank_categ.sql delete mode 100644 pgsql/tables/llx_bank_class.sql delete mode 100644 pgsql/tables/llx_bank_url.key.sql delete mode 100644 pgsql/tables/llx_bank_url.sql delete mode 100644 pgsql/tables/llx_bookmark.key.sql delete mode 100644 pgsql/tables/llx_bookmark.sql delete mode 100644 pgsql/tables/llx_bordereau_cheque.sql delete mode 100644 pgsql/tables/llx_boxes.key.sql delete mode 100644 pgsql/tables/llx_boxes.sql delete mode 100644 pgsql/tables/llx_boxes_def.sql delete mode 100644 pgsql/tables/llx_c_actioncomm.sql delete mode 100644 pgsql/tables/llx_c_barcode_type.sql delete mode 100644 pgsql/tables/llx_c_chargesociales.sql delete mode 100644 pgsql/tables/llx_c_civilite.sql delete mode 100644 pgsql/tables/llx_c_currencies.key.sql delete mode 100644 pgsql/tables/llx_c_currencies.sql delete mode 100644 pgsql/tables/llx_c_departements.key.sql delete mode 100644 pgsql/tables/llx_c_departements.sql delete mode 100644 pgsql/tables/llx_c_ecotaxe.sql delete mode 100644 pgsql/tables/llx_c_effectif.sql delete mode 100644 pgsql/tables/llx_c_forme_juridique.sql delete mode 100644 pgsql/tables/llx_c_methode_commande_fournisseur.sql delete mode 100644 pgsql/tables/llx_c_paiement.sql delete mode 100644 pgsql/tables/llx_c_paper_format.sql delete mode 100644 pgsql/tables/llx_c_pays.key.sql delete mode 100644 pgsql/tables/llx_c_pays.sql delete mode 100644 pgsql/tables/llx_c_propalst.sql delete mode 100644 pgsql/tables/llx_c_prospectlevel.sql delete mode 100644 pgsql/tables/llx_c_regions.key.sql delete mode 100644 pgsql/tables/llx_c_regions.sql delete mode 100644 pgsql/tables/llx_c_stcomm.sql delete mode 100644 pgsql/tables/llx_c_tva.sql delete mode 100644 pgsql/tables/llx_c_type_contact.key.sql delete mode 100644 pgsql/tables/llx_c_type_contact.sql delete mode 100644 pgsql/tables/llx_c_type_fees.sql delete mode 100644 pgsql/tables/llx_c_typent.sql delete mode 100644 pgsql/tables/llx_categorie.key.sql delete mode 100644 pgsql/tables/llx_categorie.sql delete mode 100644 pgsql/tables/llx_categorie_association.key.sql delete mode 100644 pgsql/tables/llx_categorie_association.sql delete mode 100644 pgsql/tables/llx_categorie_fournisseur.sql delete mode 100644 pgsql/tables/llx_categorie_product.key.sql delete mode 100644 pgsql/tables/llx_categorie_product.sql delete mode 100644 pgsql/tables/llx_categorie_societe.key.sql delete mode 100644 pgsql/tables/llx_categorie_societe.sql delete mode 100644 pgsql/tables/llx_chargesociales.sql delete mode 100644 pgsql/tables/llx_co_exp.sql delete mode 100644 pgsql/tables/llx_co_fa.sql delete mode 100644 pgsql/tables/llx_co_liv.sql delete mode 100644 pgsql/tables/llx_co_pr.sql delete mode 100644 pgsql/tables/llx_commande.key.sql delete mode 100644 pgsql/tables/llx_commande.sql delete mode 100644 pgsql/tables/llx_commande_fournisseur.key.sql delete mode 100644 pgsql/tables/llx_commande_fournisseur.sql delete mode 100644 pgsql/tables/llx_commande_fournisseur_dispatch.key.sql delete mode 100644 pgsql/tables/llx_commande_fournisseur_dispatch.sql delete mode 100644 pgsql/tables/llx_commande_fournisseur_log.sql delete mode 100644 pgsql/tables/llx_commande_fournisseurdet.sql delete mode 100644 pgsql/tables/llx_commandedet.key.sql delete mode 100644 pgsql/tables/llx_commandedet.sql delete mode 100644 pgsql/tables/llx_compta.sql delete mode 100644 pgsql/tables/llx_compta_account.sql delete mode 100644 pgsql/tables/llx_compta_compte_generaux.sql delete mode 100644 pgsql/tables/llx_cond_reglement.sql delete mode 100644 pgsql/tables/llx_const.sql delete mode 100644 pgsql/tables/llx_contrat.key.sql delete mode 100644 pgsql/tables/llx_contrat.sql delete mode 100644 pgsql/tables/llx_contratdet.key.sql delete mode 100644 pgsql/tables/llx_contratdet.sql delete mode 100644 pgsql/tables/llx_contratdet_log.key.sql delete mode 100644 pgsql/tables/llx_contratdet_log.sql delete mode 100644 pgsql/tables/llx_cotisation.key.sql delete mode 100644 pgsql/tables/llx_cotisation.sql delete mode 100644 pgsql/tables/llx_deplacement.sql delete mode 100644 pgsql/tables/llx_document.sql delete mode 100644 pgsql/tables/llx_document_generator.sql delete mode 100644 pgsql/tables/llx_document_model.key.sql delete mode 100644 pgsql/tables/llx_document_model.sql delete mode 100644 pgsql/tables/llx_dolibarr_modules.sql delete mode 100644 pgsql/tables/llx_domain.sql delete mode 100644 pgsql/tables/llx_don.sql delete mode 100644 pgsql/tables/llx_don_projet.sql delete mode 100644 pgsql/tables/llx_droitpret_rapport.sql delete mode 100644 pgsql/tables/llx_ecm_directories.sql delete mode 100644 pgsql/tables/llx_ecm_documents.sql delete mode 100644 pgsql/tables/llx_element_contact.key.sql delete mode 100644 pgsql/tables/llx_element_contact.sql delete mode 100644 pgsql/tables/llx_element_element.key.sql delete mode 100644 pgsql/tables/llx_element_element.sql delete mode 100644 pgsql/tables/llx_energie_compteur.sql delete mode 100644 pgsql/tables/llx_energie_compteur_groupe.sql delete mode 100644 pgsql/tables/llx_energie_compteur_releve.sql delete mode 100644 pgsql/tables/llx_energie_groupe.sql delete mode 100644 pgsql/tables/llx_entrepot.sql delete mode 100644 pgsql/tables/llx_entrepot_valorisation.sql delete mode 100644 pgsql/tables/llx_events.key.sql delete mode 100644 pgsql/tables/llx_events.sql delete mode 100644 pgsql/tables/llx_expedition.key.sql delete mode 100644 pgsql/tables/llx_expedition.sql delete mode 100644 pgsql/tables/llx_expedition_methode.sql delete mode 100644 pgsql/tables/llx_expeditiondet.key.sql delete mode 100644 pgsql/tables/llx_expeditiondet.sql delete mode 100644 pgsql/tables/llx_export_compta.sql delete mode 100644 pgsql/tables/llx_export_model.key.sql delete mode 100644 pgsql/tables/llx_export_model.sql delete mode 100644 pgsql/tables/llx_fa_pr.sql delete mode 100644 pgsql/tables/llx_facture.key.sql delete mode 100644 pgsql/tables/llx_facture.sql delete mode 100644 pgsql/tables/llx_facture_fourn.key.sql delete mode 100644 pgsql/tables/llx_facture_fourn.sql delete mode 100644 pgsql/tables/llx_facture_fourn_det.key.sql delete mode 100644 pgsql/tables/llx_facture_fourn_det.sql delete mode 100644 pgsql/tables/llx_facture_rec.key.sql delete mode 100644 pgsql/tables/llx_facture_rec.sql delete mode 100644 pgsql/tables/llx_facture_stats.sql delete mode 100644 pgsql/tables/llx_facturedet.key.sql delete mode 100644 pgsql/tables/llx_facturedet.sql delete mode 100644 pgsql/tables/llx_facturedet_rec.sql delete mode 100644 pgsql/tables/llx_fichinter.key.sql delete mode 100644 pgsql/tables/llx_fichinter.sql delete mode 100644 pgsql/tables/llx_fichinterdet.sql delete mode 100644 pgsql/tables/llx_fournisseur_ca.sql delete mode 100644 pgsql/tables/llx_groupesociete.sql delete mode 100644 pgsql/tables/llx_groupesociete_remise.sql delete mode 100644 pgsql/tables/llx_livraison.key.sql delete mode 100644 pgsql/tables/llx_livraison.sql delete mode 100644 pgsql/tables/llx_livraisondet.key.sql delete mode 100644 pgsql/tables/llx_livraisondet.sql delete mode 100644 pgsql/tables/llx_mailing.sql delete mode 100644 pgsql/tables/llx_mailing_cibles.key.sql delete mode 100644 pgsql/tables/llx_mailing_cibles.sql delete mode 100644 pgsql/tables/llx_menu.key.sql delete mode 100644 pgsql/tables/llx_menu.sql delete mode 100644 pgsql/tables/llx_menu_const.key.sql delete mode 100644 pgsql/tables/llx_menu_const.sql delete mode 100644 pgsql/tables/llx_menu_constraint.sql delete mode 100644 pgsql/tables/llx_notify.sql delete mode 100644 pgsql/tables/llx_notify_def.sql delete mode 100644 pgsql/tables/llx_osc_categories.sql delete mode 100644 pgsql/tables/llx_osc_customer.key.sql delete mode 100644 pgsql/tables/llx_osc_customer.sql delete mode 100644 pgsql/tables/llx_osc_order.sql delete mode 100644 pgsql/tables/llx_osc_product.sql delete mode 100644 pgsql/tables/llx_paiement.sql delete mode 100644 pgsql/tables/llx_paiement_facture.key.sql delete mode 100644 pgsql/tables/llx_paiement_facture.sql delete mode 100644 pgsql/tables/llx_paiementcharge.sql delete mode 100644 pgsql/tables/llx_paiementfourn.sql delete mode 100644 pgsql/tables/llx_paiementfourn_facturefourn.key.sql delete mode 100644 pgsql/tables/llx_paiementfourn_facturefourn.sql delete mode 100644 pgsql/tables/llx_pr_exp.sql delete mode 100644 pgsql/tables/llx_pr_liv.sql delete mode 100644 pgsql/tables/llx_prelevement_bons.sql delete mode 100644 pgsql/tables/llx_prelevement_facture.key.sql delete mode 100644 pgsql/tables/llx_prelevement_facture.sql delete mode 100644 pgsql/tables/llx_prelevement_facture_demande.sql delete mode 100644 pgsql/tables/llx_prelevement_lignes.key.sql delete mode 100644 pgsql/tables/llx_prelevement_lignes.sql delete mode 100644 pgsql/tables/llx_prelevement_notifications.sql delete mode 100644 pgsql/tables/llx_prelevement_rejet.sql delete mode 100644 pgsql/tables/llx_product.key.sql delete mode 100644 pgsql/tables/llx_product.sql delete mode 100644 pgsql/tables/llx_product_ca.sql delete mode 100644 pgsql/tables/llx_product_cnv_livre.sql delete mode 100644 pgsql/tables/llx_product_cnv_livre_contrat.sql delete mode 100644 pgsql/tables/llx_product_det.sql delete mode 100644 pgsql/tables/llx_product_fournisseur.key.sql delete mode 100644 pgsql/tables/llx_product_fournisseur.sql delete mode 100644 pgsql/tables/llx_product_fournisseur_price.key.sql delete mode 100644 pgsql/tables/llx_product_fournisseur_price.sql delete mode 100644 pgsql/tables/llx_product_fournisseur_price_log.sql delete mode 100644 pgsql/tables/llx_product_price.sql delete mode 100644 pgsql/tables/llx_product_stock.key.sql delete mode 100644 pgsql/tables/llx_product_stock.sql delete mode 100644 pgsql/tables/llx_product_subproduct.sql delete mode 100644 pgsql/tables/llx_projet.sql delete mode 100644 pgsql/tables/llx_projet_task.sql delete mode 100644 pgsql/tables/llx_projet_task_actors.sql delete mode 100644 pgsql/tables/llx_projet_task_time.sql delete mode 100644 pgsql/tables/llx_propal.key.sql delete mode 100644 pgsql/tables/llx_propal.sql delete mode 100644 pgsql/tables/llx_propaldet.sql delete mode 100644 pgsql/tables/llx_rights_def.sql delete mode 100644 pgsql/tables/llx_societe.key.sql delete mode 100644 pgsql/tables/llx_societe.sql delete mode 100644 pgsql/tables/llx_societe_adresse_livraison.sql delete mode 100644 pgsql/tables/llx_societe_commerciaux.sql delete mode 100644 pgsql/tables/llx_societe_consult.sql delete mode 100644 pgsql/tables/llx_societe_log.sql delete mode 100644 pgsql/tables/llx_societe_prices.sql delete mode 100644 pgsql/tables/llx_societe_remise.sql delete mode 100644 pgsql/tables/llx_societe_remise_except.key.sql delete mode 100644 pgsql/tables/llx_societe_remise_except.sql delete mode 100644 pgsql/tables/llx_societe_rib.sql delete mode 100644 pgsql/tables/llx_socpeople.key.sql delete mode 100644 pgsql/tables/llx_socpeople.sql delete mode 100644 pgsql/tables/llx_stock_mouvement.key.sql delete mode 100644 pgsql/tables/llx_stock_mouvement.sql delete mode 100644 pgsql/tables/llx_stock_valorisation.key.sql delete mode 100644 pgsql/tables/llx_stock_valorisation.sql delete mode 100644 pgsql/tables/llx_surveys_answers.sql delete mode 100644 pgsql/tables/llx_surveys_answers_summary.key.sql delete mode 100644 pgsql/tables/llx_surveys_answers_summary.sql delete mode 100644 pgsql/tables/llx_surveys_questions.sql delete mode 100644 pgsql/tables/llx_texts.sql delete mode 100644 pgsql/tables/llx_transaction_bplc.sql delete mode 100644 pgsql/tables/llx_tva.sql delete mode 100644 pgsql/tables/llx_user.key.sql delete mode 100644 pgsql/tables/llx_user.sql delete mode 100644 pgsql/tables/llx_user_alert.sql delete mode 100644 pgsql/tables/llx_user_clicktodial.sql delete mode 100644 pgsql/tables/llx_user_entrepot.sql delete mode 100644 pgsql/tables/llx_user_param.sql delete mode 100644 pgsql/tables/llx_user_rights.key.sql delete mode 100644 pgsql/tables/llx_user_rights.sql delete mode 100644 pgsql/tables/llx_usergroup.sql delete mode 100644 pgsql/tables/llx_usergroup_rights.key.sql delete mode 100644 pgsql/tables/llx_usergroup_rights.sql delete mode 100644 pgsql/tables/llx_usergroup_user.sql delete mode 100644 pgsql/tables/llx_voyage.sql delete mode 100644 pgsql/tables/llx_voyage_reduc.sql diff --git a/pgsql/data/Makefile b/pgsql/data/Makefile deleted file mode 100644 index 30396d8b49a..00000000000 --- a/pgsql/data/Makefile +++ /dev/null @@ -1,34 +0,0 @@ -# -# Copyright (C) 2001-2002 Rodolphe Quiedeville -# Copyright (C) 2002-2003 Éric Seigne -# Copyright (C) 2004 Benoit Mortier -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# -# General Makefile for postgresql database -# -# $Id$ -# $Source$ -# - -SQL=psql -BASE=dolibarr -OWNER=dolibarradm -OPTIONS=-U $(OWNER) - -dev: - $(SQL) $(OPTIONS) $(BASE) < data_dev.sql - $(SQL) $(OPTIONS) $(BASE) < propal_dev.sql - $(SQL) $(OPTIONS) $(BASE) < facture_dev.sql diff --git a/pgsql/data/data.sql b/pgsql/data/data.sql deleted file mode 100644 index 49e09c2c11d..00000000000 --- a/pgsql/data/data.sql +++ /dev/null @@ -1,790 +0,0 @@ --- Copyright (C) 2001-2004 Rodolphe Quiedeville --- Copyright (C) 2003 Jean-Louis Bergamo --- Copyright (C) 2004-2005 Laurent Destailleur --- Copyright (C) 2004 Benoit Mortier --- Copyright (C) 2004 Guillaume Delecourt --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- - --- --- Ne pas placer de commentaire en fin de ligne, ce fichier est parsé lors --- de l'install et tous les sigles '--' sont supprimés. --- - -insert into llx_cond_reglement(rowid, code, sortorder, actif, libelle, libelle_facture, fdm, nbjour) values (1,'RECEP', 1,1, 'A réception','Réception de facture',0,0); -insert into llx_cond_reglement(rowid, code, sortorder, actif, libelle, libelle_facture, fdm, nbjour) values (2,'30D', 2,1, '30 jours','Réglement à 30 jours',0,30); -insert into llx_cond_reglement(rowid, code, sortorder, actif, libelle, libelle_facture, fdm, nbjour) values (3,'30DENDMONTH', 3,1, '30 jours fin de mois','Réglement à 30 jours fin de mois',1,30); -insert into llx_cond_reglement(rowid, code, sortorder, actif, libelle, libelle_facture, fdm, nbjour) values (4,'60D', 4,1, '60 jours','Réglement à 60 jours',0,60); -insert into llx_cond_reglement(rowid, code, sortorder, actif, libelle, libelle_facture, fdm, nbjour) values (5,'60DENDMONTH', 5,1, '60 jours fin de mois','Réglement à 60 jours fin de mois',1,60); - - -insert into llx_sqltables (name, loaded) values ('llx_album',0); - --- --- Définition des actions de workflow notifications --- -delete from llx_action_def; -insert into llx_action_def (rowid,code,titre,description,objet_type) values (1,'NOTIFY_VAL_FICHINTER','Validation fiche intervention','Déclenché lors de la validation d\'une fiche d\'intervention','ficheinter'); -insert into llx_action_def (rowid,code,titre,description,objet_type) values (2,'NOTIFY_VAL_FAC','Validation facture','Déclenché lors de la validation d\'une facture','facture'); - --- --- Constantes de configuration --- -insert into llx_const (name, value, type, note, visible) values ('MAIN_MONNAIE','euros','chaine','Monnaie',0); - -insert into llx_const (name, value, type, note, visible) values ('MAIN_UPLOAD_DOC','2048','chaine','Max size for file upload (0 means no upload allowed)',0); -insert into llx_const (name, value, type, note, visible) values ('MAIN_NOT_INSTALLED','1','chaine','Test d\'installation',1); - -insert into llx_const (name, value, type, note, visible) values ('MAIN_TITLE','Dolibarr','chaine','Titre des pages',0); - - --- --- IHM --- -insert into llx_const (name, value, type, note, visible) values ('MAIN_THEME','eldy','chaine','Thème par défaut',0); -insert into llx_const (name, value, type, note, visible) values ('MAIN_SIZE_LISTE_LIMIT','20','chaine','Taille des listes',0); -insert into llx_const (name, value, type, note, visible) values ('MAIN_MENU_BARRETOP','default.php','chaine','Module de gestion de la barre de menu du haut',0); -insert into llx_const (name, value, type, note, visible) values ('MAIN_LANG_DEFAULT','fr_FR','chaine','Langue par défaut pour les écrans Dolibarr',0); - -insert into llx_const (name, value, type, note, visible) values ('MAIN_SEARCHFORM_CONTACT','1','yesno','Affichage formulaire de recherche des Contacts dans la barre de gauche',0); -insert into llx_const (name, value, type, note, visible) values ('MAIN_SEARCHFORM_SOCIETE','1','yesno','Affichage formulaire de recherche des Sociétés dans la barre de gauche',0); -insert into llx_const (name, value, type, note, visible) values ('MAIN_SEARCHFORM_PRODUITSERVICE','1','yesno','Affichage formulaire de recherche des Produits et Services dans la barre de gauche',0); - --- --- Mail Adherent --- -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_MAIL_REQUIRED','1','yesno','Le mail est obligatoire pour créer un adhérent',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_MAIL_FROM','adherents@domain.com','chaine','From des mails adherents',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_MAIL_RESIL','Votre adhesion sur %SERVEUR% vient d\'etre resilie.\r\nNous esperons vous revoir tres bientot','texte','Mail de Resiliation',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_MAIL_VALID','MAIN\r\nVotre adhesion vient d\'etre validee. \r\nVoici le rappel de vos coordonnees (toute information erronee entrainera la non validation de votre inscription) :\r\n\r\n%INFO%\r\n\r\nVous pouvez a tout moment, grace a votre login et mot de passe, modifier vos coordonnees a l\'adresse suivante : \r\n%SERVEUR%public/adherents/','texte','Mail de validation',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_MAIL_COTIS','Bonjour %PRENOM%,\r\nMerci de votre inscription.\r\nCet email confirme que votre cotisation a ete recue et enregistree.\r\n\r\nVous pouvez a tout moment, grace a votre login et mot de passe, modifier vos coordonnees a l\'adresse suivante :\r\n%SERVEUR%public/adherents/','texte','Mail de validation de cotisation',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_MAIL_VALID_SUBJECT','Votre adhésion a ete validée sur %SERVEUR%','chaine','sujet du mail de validation',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_MAIL_RESIL_SUBJECT','Resiliation de votre adhesion sur %SERVEUR%','chaine','sujet du mail de resiliation',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_MAIL_COTIS_SUBJECT','Recu de votre cotisation','chaine','sujet du mail de validation de cotisation',0); - --- --- Mail Mailing --- -insert into llx_const (name, value, type, note) values ('MAILING_EMAIL_FROM','mailing@societe.com','chaine','Champ From du mail pour mailing clients/prospects'); - --- --- Mailman --- -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_USE_MAILMAN','0','yesno','Utilisation de Mailman',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_MAILMAN_UNSUB_URL','http://%SERVER%/cgi-bin/mailman/admin/%LISTE%/members?adminpw=%ADMINPW%&user=%EMAIL%','chaine','Url de desinscription aux listes mailman',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_MAILMAN_URL','http://%SERVER%/cgi-bin/mailman/admin/%LISTE%/members?adminpw=%ADMINPW%&send_welcome_msg_to_this_batch=1&subscribees=%EMAIL%','chaine','Url pour les inscriptions mailman',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_MAILMAN_LISTS','test-test,test-test2','chaine','Listes auxquelles inscrire les nouveaux adherents',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_MAILMAN_ADMINPW','','chaine','Mot de passe Admin des liste mailman',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_MAILMAN_SERVER','lists.domain.com','chaine','Serveur hebergeant les interfaces d\'Admin des listes mailman',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_MAILMAN_LISTS_COTISANT','','chaine','Liste(s) auxquelles les nouveaux cotisants sont inscris automatiquement',0); --- --- SPIP --- -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_USE_SPIP','0','yesno','Utilisation de SPIP ?',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_USE_SPIP_AUTO','0','yesno','Utilisation de SPIP automatiquement',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_SPIP_USER','user','chaine','user spip',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_SPIP_PASS','pass','chaine','Pass de connection',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_SPIP_SERVEUR','localhost','chaine','serveur spip',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_SPIP_DB','spip','chaine','db spip',0); --- --- Cartes adherents --- -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_CARD_HEADER_TEXT','%ANNEE%','chaine','Texte imprime sur le haut de la carte adherent',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_CARD_FOOTER_TEXT','Association FreeLUG http://www.freelug.org/','chaine','Texte imprime sur le bas de la carte adherent',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_CARD_TEXT','%TYPE% n° %ID%\r\n%PRENOM% %NOM%\r\n<%EMAIL%>\r\n%ADRESSE%\r\n%CP% %VILLE%\r\n%PAYS%','texte','Texte imprime sur la carte adherent',0); - --- --- OsCommerce 1 --- -insert into llx_const (name, value, type) values ('OSC_DB_HOST','localhost','chaine'); - --- --- Notification --- -insert into llx_const (name, value, type, note, visible) values ('NOTIFICATION_EMAIL_FROM','dolibarr-robot@domain.com','chaine','EMail emetteur pour les notifications automatiques Dolibarr',1); - --- --- --- -insert into llx_const (name, value, type, visible) values ('FACTURE_ADDON', 'jupiter','chaine',0); -insert into llx_const (name, value, type, visible) values ('FACTURE_ADDON_PDF', 'crabe','chaine',0); -insert into llx_const (name, value, type, visible) values ('COMMANDE_ADDON', 'mod_commande_ivoire','chaine',0); -insert into llx_const (name, value, type, visible) values ('EXPEDITION_ADDON_PDF','rouget','chaine',0); -insert into llx_const (name, value, type, visible) values ('PROPALE_ADDON', 'mod_propale_ivoire','chaine',0); -insert into llx_const (name, value, type, visible) values ('FACTURE_ADDON_PDF', 'azur','chaine',0); - --- --- Forcer les locales --- -insert into llx_const (name, value, type, visible, note) VALUES ('MAIN_FORCE_SETLOCALE_LC_ALL', '', 'chaine', 1, 'Pour forcer LC_ALL si pb de locale'); -insert into llx_const (name, value, type, visible, note) VALUES ('MAIN_FORCE_SETLOCALE_LC_TIME', '', 'chaine', 1, 'Pour forcer LC_TIME si pb de locale'); -insert into llx_const (name, value, type, visible, note) VALUES ('MAIN_FORCE_SETLOCALE_LC_MONETARY', '', 'chaine', 1, 'Pour forcer LC_MONETARY si pb de locale'); -insert into llx_const (name, value, type, visible, note) VALUES ('MAIN_FORCE_SETLOCALE_LC_NUMERIC', '', 'chaine', 1, 'Mettre la valeur C si problème de centimes'); - --- Dictionnaires llx_c - --- --- Descriptif du plan comptable FR PCG99-ABREGE --- - -delete from llx_c_accountingsystem; -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 1,1,'PCG99-ABREGE','CAPIT', 'CAPITAL', 'Capital','101'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 2,1,'PCG99-ABREGE','CAPIT', 'XXXXXX', 'Ecarts de réévaluation','105'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 3,1,'PCG99-ABREGE','CAPIT', 'XXXXXX', 'Réserve légale','1061'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 4,1,'PCG99-ABREGE','CAPIT', 'XXXXXX', 'Réserves statutaires ou contractuelles','1063'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 5,1,'PCG99-ABREGE','CAPIT', 'XXXXXX', 'Réserves réglementées','1064'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 6,1,'PCG99-ABREGE','CAPIT', 'XXXXXX', 'Autres réserves','1068'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 7,1,'PCG99-ABREGE','CAPIT', 'XXXXXX', 'Compte de l''exploitant','108'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 8,1,'PCG99-ABREGE','CAPIT', 'XXXXXX', 'résultat de l''exercice','12'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 9,1,'PCG99-ABREGE','CAPIT', 'XXXXXX', 'Amortissements dérogatoires','145'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 10,1,'PCG99-ABREGE','CAPIT', 'XXXXXX', 'Provision spéciale de réévaluation','146'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 11,1,'PCG99-ABREGE','CAPIT', 'XXXXXX', 'Plus-values réinvesties','147'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 12,1,'PCG99-ABREGE','CAPIT', 'XXXXXX', 'Autres provisions réglementées','148'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 13,1,'PCG99-ABREGE','CAPIT', 'XXXXXX', 'Provisions pour risques et charges','15'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 14,1,'PCG99-ABREGE','CAPIT', 'XXXXXX', 'emprunts et dettes assimilees','16'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 15,1,'PCG99-ABREGE','IMMO', 'XXXXXX', 'immobilisations incorporelles','20'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 16,1,'PCG99-ABREGE','IMMO', 'XXXXXX', 'Frais d''établissement','201'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 17,1,'PCG99-ABREGE','IMMO', 'XXXXXX', 'Droit au bail','206'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 18,1,'PCG99-ABREGE','IMMO', 'XXXXXX', 'Fonds commercial','207'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 19,1,'PCG99-ABREGE','IMMO', 'XXXXXX', 'Autres immobilisations incorporelles','208'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 20,1,'PCG99-ABREGE','IMMO', 'XXXXXX', 'immobilisations corporelles','21'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 21,1,'PCG99-ABREGE','IMMO', 'XXXXXX', 'immobilisations en cours','23'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 22,1,'PCG99-ABREGE','IMMO', 'XXXXXX', 'autres immobilisations financieres','27'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 23,1,'PCG99-ABREGE','IMMO', 'XXXXXX', 'Amortissements des immobilisations incorporelles','280'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 24,1,'PCG99-ABREGE','IMMO', 'XXXXXX', 'Amortissements des immobilisations corporelles','281'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 25,1,'PCG99-ABREGE','IMMO', 'XXXXXX', 'Provisions pour dépréciation des immobilisations incorporelles','290'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 26,1,'PCG99-ABREGE','IMMO', 'XXXXXX', 'Provisions pour dépréciation des immobilisations corporelles','291'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 27,1,'PCG99-ABREGE','IMMO', 'XXXXXX', 'Provisions pour dépréciation des autres immobilisations financières','297'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 28,1,'PCG99-ABREGE','STOCK', 'XXXXXX', 'matieres premières','31'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 29,1,'PCG99-ABREGE','STOCK', 'XXXXXX', 'autres approvisionnements','32'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 30,1,'PCG99-ABREGE','STOCK', 'XXXXXX', 'en-cours de production de biens','33'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 31,1,'PCG99-ABREGE','STOCK', 'XXXXXX', 'en-cours de production de services','34'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 32,1,'PCG99-ABREGE','STOCK', 'XXXXXX', 'stocks de produits','35'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 33,1,'PCG99-ABREGE','STOCK', 'XXXXXX', 'stocks de marchandises','37'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 34,1,'PCG99-ABREGE','STOCK', 'XXXXXX', 'Provisions pour dépréciation des matières premières','391'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 35,1,'PCG99-ABREGE','STOCK', 'XXXXXX', 'Provisions pour dépréciation des autres approvisionnements','392'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 36,1,'PCG99-ABREGE','STOCK', 'XXXXXX', 'Provisions pour dépréciation des en-cours de production de biens','393'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 37,1,'PCG99-ABREGE','STOCK', 'XXXXXX', 'Provisions pour dépréciation des en-cours de production de services','394'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 38,1,'PCG99-ABREGE','STOCK', 'XXXXXX', 'Provisions pour dépréciation des stocks de produits','395'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 39,1,'PCG99-ABREGE','STOCK', 'XXXXXX', 'Provisions pour dépréciation des stocks de marchandises','397'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 40,1,'PCG99-ABREGE','TIERS', 'SUPPLIER', 'Fournisseurs et Comptes rattachés','400'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 41,1,'PCG99-ABREGE','TIERS', 'XXXXXX', 'Fournisseurs débiteurs','409'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 42,1,'PCG99-ABREGE','TIERS', 'CUSTOMER', 'Clients et Comptes rattachés','410'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 43,1,'PCG99-ABREGE','TIERS', 'XXXXXX', 'Clients créditeurs','419'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 44,1,'PCG99-ABREGE','TIERS', 'XXXXXX', 'Personnel','421'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 45,1,'PCG99-ABREGE','TIERS', 'XXXXXX', 'Personnel','428'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 46,1,'PCG99-ABREGE','TIERS', 'XXXXXX', 'Sécurité sociale et autres organismes sociaux','43'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 47,1,'PCG99-ABREGE','TIERS', 'XXXXXX', 'Etat - impôts sur bénéfice','444'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 48,1,'PCG99-ABREGE','TIERS', 'XXXXXX', 'Etat - Taxes sur chiffre affaire','445'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 49,1,'PCG99-ABREGE','TIERS', 'XXXXXX', 'Autres impôts, taxes et versements assimilés','447'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 50,1,'PCG99-ABREGE','TIERS', 'XXXXXX', 'Groupe et associes','45'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 51,1,'PCG99-ABREGE','TIERS', 'XXXXXX', 'Associés','455'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 52,1,'PCG99-ABREGE','TIERS', 'XXXXXX', 'Débiteurs divers et créditeurs divers','46'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 53,1,'PCG99-ABREGE','TIERS', 'XXXXXX', 'comptes transitoires ou d''attente','47'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 54,1,'PCG99-ABREGE','TIERS', 'XXXXXX', 'Charges à répartir sur plusieurs exercices','481'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 55,1,'PCG99-ABREGE','TIERS', 'XXXXXX', 'Charges constatées d''avance','486'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 56,1,'PCG99-ABREGE','TIERS', 'XXXXXX', 'Produits constatés d''avance','487'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 57,1,'PCG99-ABREGE','TIERS', 'XXXXXX', 'Provisions pour dépréciation des comptes de clients','491'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 58,1,'PCG99-ABREGE','TIERS', 'XXXXXX', 'Provisions pour dépréciation des comptes de débiteurs divers','496'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 59,1,'PCG99-ABREGE','FINAN', 'XXXXXX', 'valeurs mobilières de placement','50'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 60,1,'PCG99-ABREGE','FINAN', 'BANK', 'banques, établissements financiers et assimilés','51'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 61,1,'PCG99-ABREGE','FINAN', 'CASH', 'Caisse','53'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 62,1,'PCG99-ABREGE','FINAN', 'XXXXXX', 'régies d''avance et accréditifs','54'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 63,1,'PCG99-ABREGE','FINAN', 'XXXXXX', 'virements internes','58'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 64,1,'PCG99-ABREGE','FINAN', 'XXXXXX', 'Provisions pour dépréciation des valeurs mobilières de placement','590'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 65,1,'PCG99-ABREGE','CHARGE','XXXXXX', 'Achats','60'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 66,1,'PCG99-ABREGE','CHARGE','XXXXXX', 'variations des stocks','603'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 67,1,'PCG99-ABREGE','CHARGE','XXXXXX', 'Services extérieurs','61'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 68,1,'PCG99-ABREGE','CHARGE','XXXXXX', 'Autres services extérieurs','62'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 69,1,'PCG99-ABREGE','CHARGE','XXXXXX', 'Impôts, taxes et versements assimiles','63'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 70,1,'PCG99-ABREGE','CHARGE','XXXXXX', 'Rémunérations du personnel','641'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 71,1,'PCG99-ABREGE','CHARGE','XXXXXX', 'Rémunération du travail de l''exploitant','644'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 72,1,'PCG99-ABREGE','CHARGE','SOCIAL', 'Charges de sécurité sociale et de prévoyance','645'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 73,1,'PCG99-ABREGE','CHARGE','XXXXXX', 'Cotisations sociales personnelles de l''exploitant','646'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 74,1,'PCG99-ABREGE','CHARGE','XXXXXX', 'Autres charges de gestion courante','65'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 75,1,'PCG99-ABREGE','CHARGE','XXXXXX', 'Charges financières','66'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 76,1,'PCG99-ABREGE','CHARGE','XXXXXX', 'Charges exceptionnelles','67'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 77,1,'PCG99-ABREGE','CHARGE','XXXXXX', 'Dotations aux amortissements et aux provisions','681'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 78,1,'PCG99-ABREGE','CHARGE','XXXXXX', 'Dotations aux amortissements et aux provisions','686'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 79,1,'PCG99-ABREGE','CHARGE','XXXXXX', 'Dotations aux amortissements et aux provisions','687'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 80,1,'PCG99-ABREGE','CHARGE','XXXXXX', 'Participation des salariés aux résultats','691'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 81,1,'PCG99-ABREGE','CHARGE','XXXXXX', 'Impôts sur les bénéfices','695'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 82,1,'PCG99-ABREGE','CHARGE','XXXXXX', 'Imposition forfaitaire annuelle des sociétés','697'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 83,1,'PCG99-ABREGE','CHARGE','XXXXXX', 'Produits','699'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 84,1,'PCG99-ABREGE','PROD', 'PRODUCT', 'Ventes de produits finis','701'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 85,1,'PCG99-ABREGE','PROD', 'SERVICE', 'Prestations de services','706'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 86,1,'PCG99-ABREGE','PROD', 'PRODUCT', 'Ventes de marchandises','707'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 87,1,'PCG99-ABREGE','PROD', 'PRODUCT', 'Produits des activités annexes','708'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 88,1,'PCG99-ABREGE','PROD', 'XXXXXX', 'Rabais, remises et ristournes accordés par l''entreprise','709'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 89,1,'PCG99-ABREGE','PROD', 'XXXXXX', 'Variation des stocks','713'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 90,1,'PCG99-ABREGE','PROD', 'XXXXXX', 'Production immobilisée','72'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 91,1,'PCG99-ABREGE','PROD', 'XXXXXX', 'Produits nets partiels sur opérations à long terme','73'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 92,1,'PCG99-ABREGE','PROD', 'XXXXXX', 'Subventions d''exploitation','74'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 93,1,'PCG99-ABREGE','PROD', 'XXXXXX', 'Autres produits de gestion courante','75'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 94,1,'PCG99-ABREGE','PROD', 'XXXXXX', 'Jetons de présence et rémunérations d''administrateurs, gérants,...','753'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 95,1,'PCG99-ABREGE','PROD', 'XXXXXX', 'Ristournes perçues des coopératives','754'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 96,1,'PCG99-ABREGE','PROD', 'XXXXXX', 'Quotes-parts de résultat sur opérations faites en commun','755'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 97,1,'PCG99-ABREGE','PROD', 'XXXXXX', 'Produits financiers','76'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 98,1,'PCG99-ABREGE','PROD', 'XXXXXX', 'Produits exceptionnels','77'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES ( 99,1,'PCG99-ABREGE','PROD', 'XXXXXX', 'Reprises sur amortissements et provisions','781'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES (100,1,'PCG99-ABREGE','PROD', 'XXXXXX', 'Reprises sur provisions pour risques','786'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES (101,1,'PCG99-ABREGE','PROD', 'XXXXXX', 'Reprises sur provisions','787'); -insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, pcg_subtype, label, account_number) VALUES (102,1,'PCG99-ABREGE','PROD', 'XXXXXX', 'Transferts de charges','79'); - --- --- Types action comm --- - -delete from llx_c_actioncomm; -insert into llx_c_actioncomm (id, code, type, libelle) values ( 1, 'AC_TEL', 'system', 'Appel Téléphonique'); -insert into llx_c_actioncomm (id, code, type, libelle) values ( 2, 'AC_FAX', 'system', 'Envoi Fax'); -insert into llx_c_actioncomm (id, code, type, libelle) values ( 3, 'AC_PROP', 'system', 'Envoi Proposition'); -insert into llx_c_actioncomm (id, code, type, libelle) values ( 4, 'AC_EMAIL','system', 'Envoi Email'); -insert into llx_c_actioncomm (id, code, type, libelle) values ( 5, 'AC_RDV', 'system', 'Prendre rendez-vous'); -insert into llx_c_actioncomm (id, code, type, libelle) values ( 9, 'AC_FAC', 'system', 'Envoi Facture'); -insert into llx_c_actioncomm (id, code, type, libelle) values (10, 'AC_REL', 'system', 'Relance effectuée'); -insert into llx_c_actioncomm (id, code, type, libelle) values (11, 'AC_CLO', 'system', 'Clôture'); - --- --- Ape --- -delete from llx_c_ape; - - --- --- Types de charges --- - -insert into llx_c_chargesociales (id,libelle,deductible) values ( 1, 'Allocations familiales',1); -insert into llx_c_chargesociales (id,libelle,deductible) values ( 2, 'GSG Deductible',1); -insert into llx_c_chargesociales (id,libelle,deductible) values ( 3, 'GSG/CRDS NON Deductible',0); - --- --- Civilites --- - -delete from llx_c_civilite; -insert into llx_c_civilite (rowid, code, civilite, active) values (1 , 'MME', 'Madame', 1); -insert into llx_c_civilite (rowid, code, civilite, active) values (3 , 'MR', 'Monsieur', 1); -insert into llx_c_civilite (rowid, code, civilite, active) values (5 , 'MLE', 'Mademoiselle', 1); -insert into llx_c_civilite (rowid, code, civilite, active) values (7 , 'MTRE', 'Maître', 1); - --- --- Departements/Cantons/Provinces --- - -insert into llx_c_departements (rowid, fk_region, code_departement,cheflieu,tncc,ncc,nom) values (0,0,'0','0',0,'-','-'); --- Departements de France -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (82,'01','01053',5,'AIN','Ain'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (22,'02','02408',5,'AISNE','Aisne'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (83,'03','03190',5,'ALLIER','Allier'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (93,'04','04070',4,'ALPES-DE-HAUTE-PROVENCE','Alpes-de-Haute-Provence'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (93,'05','05061',4,'HAUTES-ALPES','Hautes-Alpes'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (93,'06','06088',4,'ALPES-MARITIMES','Alpes-Maritimes'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (82,'07','07186',5,'ARDECHE','Ardèche'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (21,'08','08105',4,'ARDENNES','Ardennes'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (73,'09','09122',5,'ARIEGE','Ariège'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (21,'10','10387',5,'AUBE','Aube'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (91,'11','11069',5,'AUDE','Aude'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (73,'12','12202',5,'AVEYRON','Aveyron'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (93,'13','13055',4,'BOUCHES-DU-RHONE','Bouches-du-Rhône'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (25,'14','14118',2,'CALVADOS','Calvados'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (83,'15','15014',2,'CANTAL','Cantal'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (54,'16','16015',3,'CHARENTE','Charente'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (54,'17','17300',3,'CHARENTE-MARITIME','Charente-Maritime'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (24,'18','18033',2,'CHER','Cher'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (74,'19','19272',3,'CORREZE','Corrèze'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (94,'2A','2A004',3,'CORSE-DU-SUD','Corse-du-Sud'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (94,'2B','2B033',3,'HAUTE-CORSE','Haute-Corse'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (26,'21','21231',3,'COTE-D\'OR','Côte-d\'Or'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (53,'22','22278',4,'COTES-D\'ARMOR','Côtes-d\'Armor'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (74,'23','23096',3,'CREUSE','Creuse'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (72,'24','24322',3,'DORDOGNE','Dordogne'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (43,'25','25056',2,'DOUBS','Doubs'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (82,'26','26362',3,'DROME','Drôme'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (23,'27','27229',5,'EURE','Eure'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (24,'28','28085',1,'EURE-ET-LOIR','Eure-et-Loir'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (53,'29','29232',2,'FINISTERE','Finistère'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (91,'30','30189',2,'GARD','Gard'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (73,'31','31555',3,'HAUTE-GARONNE','Haute-Garonne'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (73,'32','32013',2,'GERS','Gers'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (72,'33','33063',3,'GIRONDE','Gironde'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (91,'34','34172',5,'HERAULT','Hérault'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (53,'35','35238',1,'ILLE-ET-VILAINE','Ille-et-Vilaine'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (24,'36','36044',5,'INDRE','Indre'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (24,'37','37261',1,'INDRE-ET-LOIRE','Indre-et-Loire'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (82,'38','38185',5,'ISERE','Isère'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (43,'39','39300',2,'JURA','Jura'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (72,'40','40192',4,'LANDES','Landes'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (24,'41','41018',0,'LOIR-ET-CHER','Loir-et-Cher'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (82,'42','42218',3,'LOIRE','Loire'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (83,'43','43157',3,'HAUTE-LOIRE','Haute-Loire'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (52,'44','44109',3,'LOIRE-ATLANTIQUE','Loire-Atlantique'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (24,'45','45234',2,'LOIRET','Loiret'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (73,'46','46042',2,'LOT','Lot'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (72,'47','47001',0,'LOT-ET-GARONNE','Lot-et-Garonne'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (91,'48','48095',3,'LOZERE','Lozère'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (52,'49','49007',0,'MAINE-ET-LOIRE','Maine-et-Loire'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (25,'50','50502',3,'MANCHE','Manche'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (21,'51','51108',3,'MARNE','Marne'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (21,'52','52121',3,'HAUTE-MARNE','Haute-Marne'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (52,'53','53130',3,'MAYENNE','Mayenne'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (41,'54','54395',0,'MEURTHE-ET-MOSELLE','Meurthe-et-Moselle'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (41,'55','55029',3,'MEUSE','Meuse'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (53,'56','56260',2,'MORBIHAN','Morbihan'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (41,'57','57463',3,'MOSELLE','Moselle'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (26,'58','58194',3,'NIEVRE','Nièvre'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (31,'59','59350',2,'NORD','Nord'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (22,'60','60057',5,'OISE','Oise'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (25,'61','61001',5,'ORNE','Orne'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (31,'62','62041',2,'PAS-DE-CALAIS','Pas-de-Calais'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (83,'63','63113',2,'PUY-DE-DOME','Puy-de-Dôme'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (72,'64','64445',4,'PYRENEES-ATLANTIQUES','Pyrénées-Atlantiques'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (73,'65','65440',4,'HAUTES-PYRENEES','Hautes-Pyrénées'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (91,'66','66136',4,'PYRENEES-ORIENTALES','Pyrénées-Orientales'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (42,'67','67482',2,'BAS-RHIN','Bas-Rhin'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (42,'68','68066',2,'HAUT-RHIN','Haut-Rhin'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (82,'69','69123',2,'RHONE','Rhône'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (43,'70','70550',3,'HAUTE-SAONE','Haute-Saône'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (26,'71','71270',0,'SAONE-ET-LOIRE','Saône-et-Loire'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (52,'72','72181',3,'SARTHE','Sarthe'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (82,'73','73065',3,'SAVOIE','Savoie'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (82,'74','74010',3,'HAUTE-SAVOIE','Haute-Savoie'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (11,'75','75056',0,'PARIS','Paris'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (23,'76','76540',3,'SEINE-MARITIME','Seine-Maritime'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (11,'77','77288',0,'SEINE-ET-MARNE','Seine-et-Marne'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (11,'78','78646',4,'YVELINES','Yvelines'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (54,'79','79191',4,'DEUX-SEVRES','Deux-Sèvres'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (22,'80','80021',3,'SOMME','Somme'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (73,'81','81004',2,'TARN','Tarn'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (73,'82','82121',0,'TARN-ET-GARONNE','Tarn-et-Garonne'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (93,'83','83137',2,'VAR','Var'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (93,'84','84007',0,'VAUCLUSE','Vaucluse'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (52,'85','85191',3,'VENDEE','Vendée'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (54,'86','86194',3,'VIENNE','Vienne'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (74,'87','87085',3,'HAUTE-VIENNE','Haute-Vienne'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (41,'88','88160',4,'VOSGES','Vosges'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (26,'89','89024',5,'YONNE','Yonne'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (43,'90','90010',0,'TERRITOIRE DE BELFORT','Territoire de Belfort'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (11,'91','91228',5,'ESSONNE','Essonne'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (11,'92','92050',4,'HAUTS-DE-SEINE','Hauts-de-Seine'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (11,'93','93008',3,'SEINE-SAINT-DENIS','Seine-Saint-Denis'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (11,'94','94028',2,'VAL-DE-MARNE','Val-de-Marne'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (11,'95','95500',2,'VAL-D\'OISE','Val-d\'Oise'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values ( 1,'971','97105',3,'GUADELOUPE','Guadeloupe'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values ( 2,'972','97209',3,'MARTINIQUE','Martinique'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values ( 3,'973','97302',3,'GUYANE','Guyane'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values ( 4,'974','97411',3,'REUNION','Réunion'); - --- --- Provinces de Belgique - en Francais --- -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (201,'01','',1,'ANVERS','Anvers'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (203,'02','',3,'BRUXELLES-CAPITALE','Bruxelles-Capitale'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (202,'03','',2,'BRABANT-WALLON','Brabant-Wallon'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (201,'04','',1,'BRABANT-FLAMAND','Brabant-Flamand'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (201,'05','',1,'FLANDRE-OCCIDENTALE','Flandre-Occidentale'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (201,'06','',1,'FLANDRE-ORIENTALE','Flandre-Orientale'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (202,'07','',2,'HAINAUT','Hainaut'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (201,'08','',2,'LIEGE','Liège'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (202,'09','',1,'LIMBOURG','Limbourg'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (202,'10','',2,'LUXEMBOURG','Luxembourg'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (201,'11','',2,'NAMUR','Namur'); - --- --- Types effectifs --- - -delete from llx_c_effectif; -insert into llx_c_effectif (id,code,libelle) values (0, 'EF0', '-'); -insert into llx_c_effectif (id,code,libelle) values (1, 'EF1-5', '1 - 5'); -insert into llx_c_effectif (id,code,libelle) values (2, 'EF6-10', '6 - 10'); -insert into llx_c_effectif (id,code,libelle) values (3, 'EF11-50', '11 - 50'); -insert into llx_c_effectif (id,code,libelle) values (4, 'EF51-100', '51 - 100'); -insert into llx_c_effectif (id,code,libelle) values (5, 'EF100-500', '100 - 500'); -insert into llx_c_effectif (id,code,libelle) values (6, 'EF500-', '> 500'); - --- --- Formes juridiques --- - -delete from llx_c_forme_juridique; - -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (0, '0','-'); - --- Pour la France: Extrait de http://www.insee.fr/fr/nom_def_met/nomenclatures/cj/cjniveau2.htm -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'11','Artisan Commerçant'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'12','Commerçant'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'13','Artisan'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'14','Officier public ou ministériel'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'15','Profession libérale'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'16','Exploitant agricole'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'17','Agent commercial'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'18','Associé Gérant de société'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'19','(Autre) personne physique'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'21','Indivision'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'22','Société créée de fait'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'23','Société en participation'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'27','Paroisse hors zone concordataire'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'29','Autre groupement de droit privé non doté de la personnalité morale'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'31','Personne morale de droit étranger, immatriculée au RCS'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'32','Personne morale de droit étranger, non immatriculée au RCS'); - -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'41','Établissement public ou régie à caractère industriel ou commercial'); - -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'51','Société coopérative commerciale particulière'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'52','Société en nom collectif'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'53','Société en commandite'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'54','Société à responsabilité limité (SARL)'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'55','Société anonyme à conseil d\'administration'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'56','Société anonyme à directoire'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'57','Société par actions simplifiée'); - -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'61','Caisse d\'épargne et de prévoyance'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'62','Groupement d\'intérêt économique'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'63','Société coopérative agricole'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'64','Société non commerciale d\'assurances'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'65','Société civile'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'69','Autres personnes de droit privé inscrites au registre du commerce et des sociétés'); - -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'71','Administration de l\'état'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'72','Collectivité territoriale'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'73','Établissement public administratif'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'74','Autre personne morale de droit public administratif'); - -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'81','Organisme gérant un régime de protection social à adhésion obligatoire'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'82','Organisme mutualiste'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'83','Comité d\'entreprise'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'84','Organisme professionnel'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'85','Organisme de retraite à adhésion non obligatoire'); - -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'91','Syndicat de propriétaires'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'92','Association loi 1901 ou assimilé'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'93','Fondation'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'99','Autre personne morale de droit privé'); - --- --- Pour la Belgique --- - -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (2, '200', 'Indépendant'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (2, '201', 'SPRL - Société à responsabilité limitée'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (2, '202', 'SA - Société Anonyme'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (2, '203', 'SCRL - Société coopérative à responsabilité limitée'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (2, '204', 'ASBL - Association sans but Lucratif'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (2, '205', 'SCRI - Société coopérative à responsabilité illimitée'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (2, '206', 'SCS - Société en commandite simple'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (2, '207', 'SCA - Société en commandite par action'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (2, '208', 'SNC - Société en nom collectif'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (2, '209', 'GIE - Groupement d\'intérêt économique'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (2, '210', 'GEIE - Groupement européen d\'intérêt économique'); - --- --- Pour la Suisse --- - -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (6, '600', 'Raison Individuelle'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (6, '601', 'Société Simple'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (6, '602', 'Société en nom collectif'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (6, '603', 'Société en commandite'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (6, '604', 'Société anonyme (SA)'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (6, '605', 'Société en commandite par actions'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (6, '606', 'Société à responsabilité limitées (SARL)'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (6, '607', 'Société coopérative'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (6, '608', 'Association'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (6, '609', 'Fondation'); - --- --- Pour le Royaume Uni --- - -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (7, '700', 'Sole Trader'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (7, '701', 'Partnership'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (7, '702', 'Private Limited Company by shares - (LTD)'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (7, '703', 'Public Limited Company'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (7, '704', 'Workers Cooperative'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (7, '705', 'Limited Liability Partnership'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (7, '706', 'Franchise'); - --- --- Types paiement --- - -delete from llx_c_paiement; -insert into llx_c_paiement (id,code,libelle,type,active) values (0, '', '-', 3,1); -insert into llx_c_paiement (id,code,libelle,type,active) values (1, 'TIP', 'TIP', 2,1); -insert into llx_c_paiement (id,code,libelle,type,active) values (2, 'VIR', 'Virement', 2,1); -insert into llx_c_paiement (id,code,libelle,type,active) values (3, 'PRE', 'Prélèvement', 2,1); -insert into llx_c_paiement (id,code,libelle,type,active) values (4, 'LIQ', 'Espèces', 2,1); -insert into llx_c_paiement (id,code,libelle,type,active) values (5, 'VAD', 'Paiement en ligne', 2,0); -insert into llx_c_paiement (id,code,libelle,type,active) values (6, 'CB', 'Carte Bancaire', 2,1); -insert into llx_c_paiement (id,code,libelle,type,active) values (7, 'CHQ', 'Chèque', 2,1); -insert into llx_c_paiement (id,code,libelle,type,active) values (8, 'TRA', 'Traite', 2,1); -insert into llx_c_paiement (id,code,libelle,type,active) values (9, 'LCR', 'LCR', 2,1); -insert into llx_c_paiement (id,code,libelle,type,active) values (10,'FAC', 'Factor', 2,1); -insert into llx_c_paiement (id,code,libelle,type,active) values (11,'PRO', 'Proforma', 2,1); - --- --- Pays --- - -delete from llx_c_pays; -insert into llx_c_pays (rowid,code,libelle) values (0, '' , '-' ); -insert into llx_c_pays (rowid,code,libelle) values (1, 'FR', 'France' ); -insert into llx_c_pays (rowid,code,libelle) values (2, 'BE', 'Belgique' ); -insert into llx_c_pays (rowid,code,libelle) values (3, 'IT', 'Italie' ); -insert into llx_c_pays (rowid,code,libelle) values (4, 'ES', 'Espagne' ); -insert into llx_c_pays (rowid,code,libelle) values (5, 'DE', 'Allemagne' ); -insert into llx_c_pays (rowid,code,libelle) values (6, 'CH', 'Suisse' ); -insert into llx_c_pays (rowid,code,libelle) values (7, 'GB', 'Royaume uni' ); -insert into llx_c_pays (rowid,code,libelle) values (8, 'IE', 'Irlande' ); -insert into llx_c_pays (rowid,code,libelle) values (9, 'CN', 'Chine' ); -insert into llx_c_pays (rowid,code,libelle) values (10, 'TN', 'Tunisie' ); -insert into llx_c_pays (rowid,code,libelle) values (11, 'US', 'Etats Unis' ); -insert into llx_c_pays (rowid,code,libelle) values (12, 'MA', 'Maroc' ); -insert into llx_c_pays (rowid,code,libelle) values (13, 'DZ', 'Algérie' ); -insert into llx_c_pays (rowid,code,libelle) values (14, 'CA', 'Canada' ); -insert into llx_c_pays (rowid,code,libelle) values (15, 'TG', 'Togo' ); -insert into llx_c_pays (rowid,code,libelle) values (16, 'GA', 'Gabon' ); -insert into llx_c_pays (rowid,code,libelle) values (17, 'NL', 'Pays Bas' ); -insert into llx_c_pays (rowid,code,libelle) values (18, 'HU', 'Hongrie' ); -insert into llx_c_pays (rowid,code,libelle) values (19, 'RU', 'Russie' ); -insert into llx_c_pays (rowid,code,libelle) values (20, 'SE', 'Suède' ); -insert into llx_c_pays (rowid,code,libelle) values (21, 'CI', 'Côte d\'Ivoire' ); -insert into llx_c_pays (rowid,code,libelle) values (23, 'SN', 'Sénégal' ); -insert into llx_c_pays (rowid,code,libelle) values (24, 'AR', 'Argentine' ); -insert into llx_c_pays (rowid,code,libelle) values (25, 'CM', 'Cameroun' ); -insert into llx_c_pays (rowid,code,libelle) values (26, 'PT', 'Portugal' ); -insert into llx_c_pays (rowid,code,libelle) values (27, 'SA', 'Arabie Saoudite'); -insert into llx_c_pays (rowid,code,libelle) values (28, 'MC', 'Monaco' ); - --- --- Types etat propales --- - -delete from llx_c_propalst; -insert into llx_c_propalst (id,code,label) values (0, 'PR_DRAFT', 'Brouillon'); -insert into llx_c_propalst (id,code,label) values (1, 'PR_OPEN', 'Ouverte'); -insert into llx_c_propalst (id,code,label) values (2, 'PR_SIGNED', 'Signée'); -insert into llx_c_propalst (id,code,label) values (3, 'PR_NOTSIGNED', 'Non Signée'); -insert into llx_c_propalst (id,code,label) values (4, 'PR_FAC', 'Facturée'); - --- --- Types action st --- - -delete from llx_c_stcomm; -insert into llx_c_stcomm (id,code,libelle) values (-1, 'ST_NO', 'Ne pas contacter'); -insert into llx_c_stcomm (id,code,libelle) values ( 0, 'ST_NEVER', 'Jamais contacté'); -insert into llx_c_stcomm (id,code,libelle) values ( 1, 'ST_TODO', 'A contacter'); -insert into llx_c_stcomm (id,code,libelle) values ( 2, 'ST_PEND', 'Contact en cours'); -insert into llx_c_stcomm (id,code,libelle) values ( 3, 'ST_DONE', 'Contactée'); - --- --- Types entreprises --- - -delete from llx_c_typent; -insert into llx_c_typent (id,code,libelle) values ( 0, 'TE_UNKNOWN', '-'); -insert into llx_c_typent (id,code,libelle) values ( 1, 'TE_STARTUP', 'Start-up'); -insert into llx_c_typent (id,code,libelle) values ( 2, 'TE_GROUP', 'Grand groupe'); -insert into llx_c_typent (id,code,libelle) values ( 3, 'TE_MEDIUM', 'PME/PMI'); -insert into llx_c_typent (id,code,libelle) values ( 4, 'TE_SMALL', 'TPE'); -insert into llx_c_typent (id,code,libelle) values ( 5, 'TE_ADMIN', 'Administration'); -insert into llx_c_typent (id,code,libelle) values ( 6, 'TE_WHOLE', 'Grossiste'); -insert into llx_c_typent (id,code,libelle) values ( 7, 'TE_RETAIL', 'Revendeur'); -insert into llx_c_typent (id,code,libelle) values ( 8, 'TE_PRIVATE', 'Particulier'); -insert into llx_c_typent (id,code,libelle) values (100, 'TE_OTHER', 'Autres'); - --- --- Regions --- - -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values (0,0,0,'0',0,'-'); --- Regions de France -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values (101,1, 1,'97105',3,'Guadeloupe'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values (102,1, 2,'97209',3,'Martinique'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values (103,1, 3,'97302',3,'Guyane'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values (104,1, 4,'97411',3,'Réunion'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values (105,1, 11,'75056',1,'Île-de-France'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values (106,1, 21,'51108',0,'Champagne-Ardenne'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values (107,1, 22,'80021',0,'Picardie'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values (108,1, 23,'76540',0,'Haute-Normandie'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values (109,1, 24,'45234',2,'Centre'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values (110,1, 25,'14118',0,'Basse-Normandie'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values (111,1, 26,'21231',0,'Bourgogne'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values (112,1, 31,'59350',2,'Nord-Pas-de-Calais'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values (113,1, 41,'57463',0,'Lorraine'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values (114,1, 42,'67482',1,'Alsace'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values (115,1, 43,'25056',0,'Franche-Comté'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values (116,1, 52,'44109',4,'Pays de la Loire'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values (117,1, 53,'35238',0,'Bretagne'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values (118,1, 54,'86194',2,'Poitou-Charentes'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values (119,1, 72,'33063',1,'Aquitaine'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values (120,1, 73,'31555',0,'Midi-Pyrénées'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values (121,1, 74,'87085',2,'Limousin'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values (122,1, 82,'69123',2,'Rhône-Alpes'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values (123,1, 83,'63113',1,'Auvergne'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values (124,1, 91,'34172',2,'Languedoc-Roussillon'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values (125,1, 93,'13055',0,'Provence-Alpes-Côte d\'Azur'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values (126,1, 94,'2A004',0,'Corse'); - --- --- Regions de Belgique --- - -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values (201,2,201,'',1,'Flandre'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values (202,2,202,'',2,'Wallonie'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values (203,2,203,'',3,'Bruxelles-Capitale'); - --- --- Devises (code secondaire - code ISO4217 - libelle fr) --- - -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'BT', 'THB', 1, 'Bath thailandais'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'CD', 'DKK', 1, 'Couronnes dannoises'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'CN', 'NOK', 1, 'Couronnes norvegiennes'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'CS', 'SEK', 1, 'Couronnes suedoises'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'CZ', 'CZK', 1, 'Couronnes tcheques'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'DA', 'AUD', 1, 'Dollars australiens'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'DC', 'CAD', 1, 'Dollars canadiens'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'DH', 'HKD', 1, 'Dollars hong kong'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'DS', 'SGD', 1, 'Dollars singapour'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'DU', 'USD', 1, 'Dollars us'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'EC', 'XEU', 1, 'Ecus'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'ES', 'PTE', 1, 'Escudos'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'FB', 'BEF', 1, 'Francs belges'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'FF', 'FRF', 1, 'Francs francais'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'FL', 'LUF', 1, 'Francs luxembourgeois'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'FO', 'NLG', 1, 'Florins'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'FS', 'CHF', 1, 'Francs suisses'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'LI', 'IEP', 1, 'Livres irlandaises'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'LR', 'ITL', 1, 'Lires'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'LS', 'GBP', 1, 'Livres sterling'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'MA', 'DEM', 1, 'Deutsch mark'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'MF', 'FIM', 1, 'Mark finlandais'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'PA', 'ARP', 1, 'Pesos argentins'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'PC', 'CLP', 1, 'Pesos chilien'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'PE', 'ESP', 1, 'Pesete'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'PL', 'PLN', 1, 'Zlotys polonais'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'SA', 'ATS', 1, 'Shiliing autrichiens'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'TW', 'TWD', 1, 'Dollar taiwanais'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'YE', 'JPY', 1, 'Yens'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'ZA', 'ZAR', 1, 'Rand africa'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'DR', 'GRD', 1, 'Drachme (grece)'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'EU', 'EUR', 1, 'Euros'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'RB', 'BRL', 1, 'Real bresilien'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'SK', 'SKK', 1, 'Couronnes slovaques'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'YC', 'CNY', 1, 'Yuang chinois'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'AE', 'AED', 1, 'Arabes emirats dirham'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'CF', 'XAF', 1, 'Francs cfa beac'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'EG', 'EGP', 1, 'Livre egyptienne'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'KR', 'KRW', 1, 'Won coree du sud'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'NZ', 'NZD', 1, 'Dollar neo-zelandais'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'TR', 'TRL', 1, 'Livre turque'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'ID', 'IDR', 1, 'Rupiahs d''indonesie'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'IN', 'INR', 1, 'Roupie indienne'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'LT', 'LTL', 1, 'Litas'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'RU', 'SUR', 1, 'Rouble'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'FH', 'HUF', 1, 'Forint hongrois'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'LK', 'LKR', 1, 'Roupie sri lanka'); - --- --- Taux TVA --- Source des taux: http://fr.wikipedia.org/wiki/Taxe_sur_la_valeur_ajout%C3%A9e --- - -delete from llx_c_tva; - --- ALLEMAGNE (id 5) -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 51, 5, '16','0','VAT Rate 16',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 52, 5, '7','0','VAT Rate 7',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 53, 5, '0','0','VAT Rate 0',1); - --- BELGIQUE (id 2) -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 21, 2, '21','0','VAT Rate 21',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 22, 2, '6','0','VAT Rate 6',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 23, 2, '0','0','VAT Rate 0 ou non applicable',1); - --- CANADA (id 14) -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values (141,14, '7','0','VAT Rate 7',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values (142,14, '0','0','VAT Rate 0',1); - --- ESPAGNE (id 4) -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 41, 4, '16','0','VAT Rate 16',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 42, 4, '7','0','VAT Rate 7',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 43, 4, '4','0','VAT Rate 4',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 44, 4, '0','0','VAT Rate 0',1); - --- ITALY (id 3) -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 31, 3, '20','0','VAT Rate 20',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 32, 3, '10','0','VAT Rate 10',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 33, 3, '4','0','VAT Rate 4',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 34, 3, '0','0','VAT Rate 0',1); - --- FRANCE (id 1) -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 11, 1,'19.6','0','VAT Rate 19.6 (France hors DOM-TOM)',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 12, 1, '8.5','0','VAT Rate 8.5 (DOM sauf Guyane et Saint-Martin)',0); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 13, 1, '8.5','1','VAT Rate 8.5 (DOM sauf Guyane et Saint-Martin), non perçu par le vendeur mais récupérable par l\'acheteur',0); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 14, 1, '5.5','0','VAT Rate 5.5 (France hors DOM-TOM)',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 15, 1, '0','0','VAT Rate 0 ou non applicable (France, TOM)',1); - --- PAYS-BAS (id 17) -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values (171,17, '19','0','VAT Rate 19',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values (172,17, '6','0','VAT Rate 6',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values (173,17, '0','0','VAT Rate 0',1); - --- PORTUGAL (id 26) -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values (261,26, '17','0','VAT Rate 17',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values (262,26, '12','0','VAT Rate 12',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values (263,26, '0','0','VAT Rate 0',1); - --- ROYAUME UNI (id 7) -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 71, 7,'17.5','0','VAT Rate 17.5',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 72, 7, '5','0','VAT Rate 5',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 73, 7, '0','0','VAT Rate 0',1); - --- SUISSE (id 6) -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 61, 6, '7.6','0','VAT Rate 7.6',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 62, 6, '3.6','0','VAT Rate 3.6',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 63, 6, '2.4','0','VAT Rate 2.4',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 64, 6, '0','0','VAT Rate 0',1); - - - --- --- Les types de contact d'un element --- -insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (10, 'contrat', 'internal', 'SALESREPSIGN', 'Commercial signataire du contrat', 1); -insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (11, 'contrat', 'internal', 'SALESREPFOLL', 'Commercial suivi du contrat', 1); -insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (20, 'contrat', 'external', 'BILLING', 'Contact client facturation contrat', 1); -insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (21, 'contrat', 'external', 'CUSTOMER', 'Contact client suivi contrat', 1); -insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (22, 'contrat', 'external', 'SALESREPSIGN', 'Contact client signataire contrat', 1); - -insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (30, 'propal', 'internal', 'SALESREPSIGN', 'Commercial signataire de la propale', 1); -insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (31, 'propal', 'internal', 'SALESREPFOLL', 'Commercial suivi de la propale', 1); -insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (40, 'propal', 'external', 'BILLING', 'Contact client facturation propale', 1); -insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (41, 'propal', 'external', 'CUSTOMER', 'Contact client suivi propale', 1); - -insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (80, 'projet', 'internal', 'PROJECTLEADER', 'Chef de Projet', 1); -insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (81, 'projet', 'external', 'PROJECTLEADER', 'Chef de Projet', 1); - -insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (50, 'facture', 'internal', 'SALESREPFOLL', 'Commercial suivi du paiement', 1); -insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (60, 'facture', 'external', 'BILLING', 'Contact client facturation', 1); -insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (61, 'facture', 'external', 'SHIPPING', 'Contact client livraison', 1); -insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (62, 'facture', 'external', 'SERVICE', 'Contact client prestation', 1); \ No newline at end of file diff --git a/pgsql/tables/llx_accountingaccount.key.sql b/pgsql/tables/llx_accountingaccount.key.sql deleted file mode 100644 index 9d00eb52517..00000000000 --- a/pgsql/tables/llx_accountingaccount.key.sql +++ /dev/null @@ -1,30 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2003 Rodolphe Quiedeville --- Copyright (C) 2005-2006 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_accountingaccount.key.sql,v 1.2 2007/12/02 21:51:12 eldy Exp --- =========================================================================== - - -ALTER TABLE llx_accountingaccount ADD INDEX idx_accountingaccount_fk_pcg_version (fk_pcg_version); - - -ALTER TABLE llx_accountingaccount ADD CONSTRAINT fk_accountingaccount_fk_pcg_version FOREIGN KEY (fk_pcg_version) REFERENCES llx_accountingsystem (pcg_version); diff --git a/pgsql/tables/llx_accountingaccount.sql b/pgsql/tables/llx_accountingaccount.sql deleted file mode 100644 index 24ed0e7969d..00000000000 --- a/pgsql/tables/llx_accountingaccount.sql +++ /dev/null @@ -1,34 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2004-2006 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_accountingaccount.sql,v 1.2 2007/12/02 21:51:12 eldy Exp --- ============================================================================ - -create table llx_accountingaccount -( - rowid SERIAL PRIMARY KEY, - "fk_pcg_version" varchar(12) NOT NULL, - "pcg_type" varchar(20) NOT NULL, - "pcg_subtype" varchar(20) NOT NULL, - "label" varchar(128) NOT NULL, - "account_number" varchar(20) NOT NULL, - "account_parent" varchar(20) -); diff --git a/pgsql/tables/llx_accountingdebcred.sql b/pgsql/tables/llx_accountingdebcred.sql deleted file mode 100644 index 8873aa51b46..00000000000 --- a/pgsql/tables/llx_accountingdebcred.sql +++ /dev/null @@ -1,31 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2004-2006 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_accountingdebcred.sql,v 1.2 2007/12/02 21:51:12 eldy Exp --- ============================================================================ - -create table llx_accountingdebcred -( - "fk_transaction" integer NOT NULL, - "fk_account" integer NOT NULL, - "amount" real NOT NULL, - "direction" varchar(1) NOT NULL -); diff --git a/pgsql/tables/llx_accountingsystem.sql b/pgsql/tables/llx_accountingsystem.sql deleted file mode 100644 index 8a41899061e..00000000000 --- a/pgsql/tables/llx_accountingsystem.sql +++ /dev/null @@ -1,34 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2004-2006 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_accountingsystem.sql,v 1.3 2007/12/02 21:51:12 eldy Exp --- ============================================================================ - -create table llx_accountingsystem -( - pcg_version varchar(12) PRIMARY KEY, - "fk_pays" integer NOT NULL, - "label" varchar(128) NOT NULL, - "datec" varchar(12) NOT NULL, - "fk_author" varchar(20), - "tms" timestamp, - "active" smallint DEFAULT 0 -); diff --git a/pgsql/tables/llx_accountingtransaction.sql b/pgsql/tables/llx_accountingtransaction.sql deleted file mode 100644 index b0961e9e7e7..00000000000 --- a/pgsql/tables/llx_accountingtransaction.sql +++ /dev/null @@ -1,36 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2004-2006 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_accountingtransaction.sql,v 1.3 2007/12/02 21:51:12 eldy Exp --- ============================================================================ - -create table llx_accountingtransaction -( - rowid SERIAL PRIMARY KEY, - "label" varchar(128) NOT NULL, - "datec" date NOT NULL, - "fk_author" varchar(20) NOT NULL, - "tms" timestamp, - "fk_facture" integer, - "fk_facture_fourn" integer, - "fk_paiement" integer, - "fk_paiement_fourn" integer -); diff --git a/pgsql/tables/llx_action_def.sql b/pgsql/tables/llx_action_def.sql deleted file mode 100644 index d07cb36c6ae..00000000000 --- a/pgsql/tables/llx_action_def.sql +++ /dev/null @@ -1,35 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- Copyright (C) 2004 Benoit Mortier --- Copyright (C) 2004 Guillaume Delecourt --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_action_def.sql,v 1.8 2007/12/04 19:01:38 eldy Exp --- =================================================================== - -create table llx_action_def -( - rowid integer NOT NULL PRIMARY KEY, - "code" varchar(28) UNIQUE NOT NULL, - "tms" timestamp, - "titre" varchar(255) NOT NULL, - "description" text, - "objet_type" varchar(16) NOT NULL -); diff --git a/pgsql/tables/llx_actioncomm.key.sql b/pgsql/tables/llx_actioncomm.key.sql deleted file mode 100644 index 0d7ee40826b..00000000000 --- a/pgsql/tables/llx_actioncomm.key.sql +++ /dev/null @@ -1,29 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_actioncomm.key.sql,v 1.2 2007/12/02 21:51:12 eldy Exp --- =========================================================================== - - -ALTER TABLE llx_actioncomm ADD INDEX idx_actioncomm_datea (datea); -ALTER TABLE llx_actioncomm ADD INDEX idx_actioncomm_fk_soc (fk_soc); -ALTER TABLE llx_actioncomm ADD INDEX idx_actioncomm_fk_contact (fk_contact); -ALTER TABLE llx_actioncomm ADD INDEX idx_actioncomm_fk_facture (fk_facture); diff --git a/pgsql/tables/llx_actioncomm.sql b/pgsql/tables/llx_actioncomm.sql deleted file mode 100644 index 87cb7a961d6..00000000000 --- a/pgsql/tables/llx_actioncomm.sql +++ /dev/null @@ -1,66 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2001-2003 Rodolphe Quiedeville --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_actioncomm.sql,v 1.13 2008/02/11 15:51:04 eldy Exp --- --- Actions commerciales --- ======================================================================== - - - - - - - -create table llx_actioncomm -( - id SERIAL PRIMARY KEY, - "datep" timestamp, -- date debut planifiee - "datep2" timestamp, -- date fin planifiee si action non ponctuelle - "datea" timestamp, -- date debut realisation - "datea2" timestamp, -- date fin realisation si action non ponctuelle - "fk_action" integer, -- type de l'action - "label" varchar(50) NOT NULL, -- libelle de l'action - "datec" timestamp, -- date creation - "tms" timestamp, -- date modif - "fk_user_author" integer, -- id user qui a cree l'action - "fk_user_mod" integer, -- id dernier user qui a modifier l'action - "fk_project" integer, - "fk_soc" integer, - "fk_contact" integer, - "fk_parent" integer NOT NULL default 0, - "fk_user_action" integer, -- id de la personne qui doit effectuer l'action - "fk_user_done" integer, -- id de la personne qui a effectue l'action - "priority" smallint, - "punctual" smallint NOT NULL default 1, - "percent" smallint NOT NULL default 0, - "durationp" real, -- duree planifiee - "durationa" real, -- duree reellement passee - "note" text, - "propalrowid" integer, - "fk_commande" integer, - "fk_facture" integer -); - - - - diff --git a/pgsql/tables/llx_adherent.sql b/pgsql/tables/llx_adherent.sql deleted file mode 100644 index 1a93cf55202..00000000000 --- a/pgsql/tables/llx_adherent.sql +++ /dev/null @@ -1,65 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2002-2004 Rodolphe Quiedeville --- Copyright (C) 2002-2003 Jean-Louis Bergamo --- Copyright (C) 2006 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_adherent.sql,v 1.22 2008/05/17 22:17:29 eldy Exp --- =================================================================== --- --- statut --- -1 : brouillon --- 0 : resilie --- 1 : valide - -create table llx_adherent -( - rowid SERIAL PRIMARY KEY, - "nom" varchar(50), - "prenom" varchar(50), - "login" varchar(50) NOT NULL, -- login - "pass" varchar(50), -- password - "fk_adherent_type" smallint, - "morphy" varchar(3) CHECK (morphy IN ('mor','phy')) NOT NULL, -- personne morale / personne physique - "societe" varchar(50), - "adresse" text, - "cp" varchar(30), - "ville" varchar(50), - "pays" varchar(50), - "email" varchar(255), - "phone" varchar(30), - "phone_perso" varchar(30), - "phone_mobile" varchar(30), - "naiss" date, -- date de naissance - "photo" varchar(255), -- url vers photo - "statut" smallint NOT NULL DEFAULT 0, - "public" smallint NOT NULL DEFAULT 0, -- certain champ de la fiche sont ils public ou pas ? - "datefin" timestamp, -- date de fin de validité de la cotisation - "note" text, - "datevalid" timestamp, -- date de validation - "datec" timestamp, -- date de creation - "tms" timestamp, -- date de modification - "fk_user_author" integer NOT NULL, - "fk_user_mod" integer, - "fk_user_valid" integer, - UNIQUE(login) -); - -CREATE INDEX idx_llx_adherent_login ON llx_adherent (login); diff --git a/pgsql/tables/llx_adherent_options.sql b/pgsql/tables/llx_adherent_options.sql deleted file mode 100644 index 3e1f308f1f0..00000000000 --- a/pgsql/tables/llx_adherent_options.sql +++ /dev/null @@ -1,35 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2002-2003 Rodolphe Quiedeville --- Copyright (C) 2002-2003 Jean-Louis Bergamo --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_adherent_options.sql,v 1.6 2007/12/02 21:51:12 eldy Exp --- =================================================================== - - -create table llx_adherent_options -( - optid SERIAL PRIMARY KEY, - "tms" timestamp, - "adhid" integer NOT NULL, -- id de l'adherent auquel correspond ces attributs optionnel - UNIQUE(adhid) -); - -CREATE INDEX idx_llx_adherent_options_adhid ON llx_adherent_options (adhid); diff --git a/pgsql/tables/llx_adherent_options_label.sql b/pgsql/tables/llx_adherent_options_label.sql deleted file mode 100644 index d6f99b84141..00000000000 --- a/pgsql/tables/llx_adherent_options_label.sql +++ /dev/null @@ -1,31 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2002-2003 Rodolphe Quiedeville --- Copyright (C) 2002-2003 Jean-Louis Bergamo --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_adherent_options_label.sql,v 1.3 2007/12/02 21:51:12 eldy Exp --- =================================================================== - -create table llx_adherent_options_label -( - name varchar(64) PRIMARY KEY, -- nom de l'attribut - "tms" timestamp, - "label" varchar(255) NOT NULL -- label correspondant a l'attribut -); diff --git a/pgsql/tables/llx_adherent_type.key.sql b/pgsql/tables/llx_adherent_type.key.sql deleted file mode 100644 index fa67e856a2a..00000000000 --- a/pgsql/tables/llx_adherent_type.key.sql +++ /dev/null @@ -1,26 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2007 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_adherent_type.key.sql,v 1.4 2007/12/02 21:51:12 eldy Exp --- ============================================================================ - - -ALTER TABLE llx_adherent_type ADD UNIQUE uk_adherent_type_libelle (libelle); diff --git a/pgsql/tables/llx_adherent_type.sql b/pgsql/tables/llx_adherent_type.sql deleted file mode 100644 index 7dbac19e28f..00000000000 --- a/pgsql/tables/llx_adherent_type.sql +++ /dev/null @@ -1,40 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2002-2003 Rodolphe Quiedeville --- Copyright (C) 2002-2003 Jean-Louis Bergamo --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_adherent_type.sql,v 1.10 2007/12/02 21:51:12 eldy Exp --- =================================================================== --- --- statut --- 0 : actif --- 1 : inactif - -create table llx_adherent_type -( - rowid SERIAL PRIMARY KEY, - "tms" timestamp, - "statut" smallint NOT NULL DEFAULT 0, - "libelle" varchar(50) NOT NULL, - "cotisation" varchar(3) CHECK (cotisation IN ('yes','no')) NOT NULL DEFAULT 'yes', - "vote" varchar(3) CHECK (vote IN ('yes','no')) NOT NULL DEFAULT 'yes', - "note" text, - "mail_valid" text -- mail envoye a la validation -); diff --git a/pgsql/tables/llx_appro.sql b/pgsql/tables/llx_appro.sql deleted file mode 100644 index 8e7961004f2..00000000000 --- a/pgsql/tables/llx_appro.sql +++ /dev/null @@ -1,35 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_appro.sql,v 1.3 2007/12/02 21:53:28 eldy Exp --- ============================================================================ - -create table llx_appro -( - rowid SERIAL PRIMARY KEY, - "datec" timestamp, - "tms" timestamp, - "fk_product" integer NOT NULL, - "quantity" smallint NOT NULL, - "price" real, - "fk_user_author" integer -); - diff --git a/pgsql/tables/llx_bank.sql b/pgsql/tables/llx_bank.sql deleted file mode 100644 index a075287342c..00000000000 --- a/pgsql/tables/llx_bank.sql +++ /dev/null @@ -1,46 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2000-2006 Rodolphe Quiedeville --- Copyright (C) 2005-2008 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_bank.sql,v 1.12 2008/05/02 23:09:44 eldy Exp --- =================================================================== - -create table llx_bank -( - rowid SERIAL PRIMARY KEY, - "datec" timestamp, - "datev" date, -- date de valeur - "dateo" date, -- date operation - "amount" real(24,8) NOT NULL default 0, - "label" varchar(255), - "fk_account" integer, - "fk_user_author" integer, - "fk_user_rappro" integer, - "fk_type" varchar(4), -- CB, Virement, cheque - "num_releve" varchar(50), - "num_chq" varchar(50), - "rappro" smallint default 0, - "note" text, - "fk_bordereau" integer DEFAULT 0, - "banque" varchar(255), -- banque pour les cheques - "emetteur" varchar(255), -- emetteur du cheque - "author" varchar(40) -- a supprimer apres migration -); diff --git a/pgsql/tables/llx_bank_account.key.sql b/pgsql/tables/llx_bank_account.key.sql deleted file mode 100644 index dddd3da76b5..00000000000 --- a/pgsql/tables/llx_bank_account.key.sql +++ /dev/null @@ -1,26 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_bank_account.key.sql,v 1.2 2007/12/02 21:53:28 eldy Exp --- ============================================================================ - - -ALTER TABLE llx_bank_account ADD UNIQUE uk_bank_account_label (label); diff --git a/pgsql/tables/llx_bank_account.sql b/pgsql/tables/llx_bank_account.sql deleted file mode 100644 index c7f12824e75..00000000000 --- a/pgsql/tables/llx_bank_account.sql +++ /dev/null @@ -1,57 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================= --- Copyright (C) 2000-2004 Rodolphe Quiedeville --- Copyright (C) 2004-2007 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_bank_account.sql,v 1.28 2007/12/02 21:53:28 eldy Exp --- ============================================================================= - --- courant : type de compte: 0 epargne, 1 courant, 2 caisse --- clos : le compte est-il clos ou encore ouvert - -create table llx_bank_account -( - rowid SERIAL PRIMARY KEY, - "datec" timestamp, - "tms" timestamp, - "ref" varchar(12) NOT NULL, - "label" varchar(30) NOT NULL, - "bank" varchar(60), - "code_banque" varchar(7), - "code_guichet" varchar(6), - "number" varchar(255), - "cle_rib" varchar(5), - "bic" varchar(11), - "iban_prefix" varchar(50), -- Code IBAN - "country_iban" varchar(2), - "cle_iban" varchar(2), - "domiciliation" varchar(255), - "proprio" varchar(60), - "adresse_proprio" varchar(255), - "courant" smallint DEFAULT 0 NOT NULL, - "clos" smallint DEFAULT 0 NOT NULL, - "rappro" smallint DEFAULT 1, - "url" varchar(128), - "account_number" varchar(8), - "currency_code" varchar(3) NOT NULL, - "min_allowed" integer DEFAULT 0, - "min_desired" integer DEFAULT 0, - "comment" varchar(254) -); diff --git a/pgsql/tables/llx_bank_categ.sql b/pgsql/tables/llx_bank_categ.sql deleted file mode 100644 index 9816cabd173..00000000000 --- a/pgsql/tables/llx_bank_categ.sql +++ /dev/null @@ -1,29 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2004-2007 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_bank_categ.sql,v 1.4 2007/12/02 21:53:28 eldy Exp --- =================================================================== - -create table llx_bank_categ -( - rowid SERIAL PRIMARY KEY, - "label" varchar(255) -); diff --git a/pgsql/tables/llx_bank_class.sql b/pgsql/tables/llx_bank_class.sql deleted file mode 100644 index 63a1ec47f8a..00000000000 --- a/pgsql/tables/llx_bank_class.sql +++ /dev/null @@ -1,32 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2004-2007 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_bank_class.sql,v 1.5 2007/12/02 21:53:28 eldy Exp --- =================================================================== - - -create table llx_bank_class -( - "lineid" integer NOT NULL, - "fk_categ" integer NOT NULL -); - -CREATE INDEX idx_llx_bank_class_lineid ON llx_bank_class (lineid); diff --git a/pgsql/tables/llx_bank_url.key.sql b/pgsql/tables/llx_bank_url.key.sql deleted file mode 100644 index 4d3d27a7869..00000000000 --- a/pgsql/tables/llx_bank_url.key.sql +++ /dev/null @@ -1,28 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2005-2007 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_bank_url.key.sql,v 1.4 2007/12/02 21:53:28 eldy Exp --- =================================================================== - - -ALTER TABLE llx_bank_url ADD UNIQUE INDEX uk_bank_url (fk_bank,type); - ---ALTER TABLE llx_bank_url ADD INDEX idx_bank_url_fk_bank (fk_bank); \ No newline at end of file diff --git a/pgsql/tables/llx_bank_url.sql b/pgsql/tables/llx_bank_url.sql deleted file mode 100644 index 71294bb79e8..00000000000 --- a/pgsql/tables/llx_bank_url.sql +++ /dev/null @@ -1,34 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- Copyright (C) 2007 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_bank_url.sql,v 1.9 2007/12/02 21:53:28 eldy Exp --- =================================================================== - -create table llx_bank_url -( - rowid SERIAL PRIMARY KEY, - "fk_bank" integer, - "url_id" integer, - "url" varchar(255), - "label" varchar(255), - "type" varchar(20) NOT NULL -); diff --git a/pgsql/tables/llx_bookmark.key.sql b/pgsql/tables/llx_bookmark.key.sql deleted file mode 100644 index c3bfd8ad455..00000000000 --- a/pgsql/tables/llx_bookmark.key.sql +++ /dev/null @@ -1,27 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_bookmark.key.sql,v 1.2 2007/12/02 21:53:28 eldy Exp --- =================================================================== - - -ALTER TABLE llx_bookmark ADD UNIQUE uk_bookmark_url (fk_user, url); -ALTER TABLE llx_bookmark ADD UNIQUE uk_bookmark_title (fk_user, title); \ No newline at end of file diff --git a/pgsql/tables/llx_bookmark.sql b/pgsql/tables/llx_bookmark.sql deleted file mode 100644 index f1cbc8e58b3..00000000000 --- a/pgsql/tables/llx_bookmark.sql +++ /dev/null @@ -1,35 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2007 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_bookmark.sql,v 1.8 2007/12/02 21:53:28 eldy Exp --- =================================================================== - -create table llx_bookmark -( - rowid SERIAL PRIMARY KEY, - "fk_soc" integer, - "fk_user" integer NOT NULL, - "dateb" timestamp, - "url" varchar(128) NOT NULL, - "target" varchar(16), - "title" varchar(64), - "favicon" varchar(24) -); diff --git a/pgsql/tables/llx_bordereau_cheque.sql b/pgsql/tables/llx_bordereau_cheque.sql deleted file mode 100644 index 60abfc331c9..00000000000 --- a/pgsql/tables/llx_bordereau_cheque.sql +++ /dev/null @@ -1,41 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2006 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- --- Id: llx_bordereau_cheque.sql,v 1.6 2007/12/02 21:53:28 eldy Exp --- =================================================================== - --- --- Bordereaux de remise de cheque --- -create table llx_bordereau_cheque -( - rowid SERIAL PRIMARY KEY, - "datec" timestamp, - "date_bordereau" date, -- A quoi sert cette date ? - "number" varchar(16) NOT NULL, - "amount" real(24,8) NOT NULL, - "nbcheque" smallint NOT NULL, - "fk_bank_account" integer, - "fk_user_author" integer, - "note" text, - "statut" int2 NOT NULL DEFAULT 0 -); diff --git a/pgsql/tables/llx_boxes.key.sql b/pgsql/tables/llx_boxes.key.sql deleted file mode 100644 index 3122a64e2c4..00000000000 --- a/pgsql/tables/llx_boxes.key.sql +++ /dev/null @@ -1,33 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2006-2007 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_boxes.key.sql,v 1.4 2007/12/02 14:46:08 eldy Exp --- =================================================================== - - -ALTER TABLE llx_boxes ADD UNIQUE INDEX uk_boxes (box_id, position, fk_user); - --- Supprime orphelins pour permettre montée de la clé --- V4 DELETE llx_boxes FROM llx_boxes LEFT JOIN llx_boxes_def ON llx_boxes.box_id = llx_boxes_def.rowid WHERE llx_boxes_def.rowid IS NULL; -ALTER TABLE llx_boxes ADD INDEX idx_boxes_boxid (box_id); -ALTER TABLE llx_boxes ADD CONSTRAINT fk_boxes_box_id FOREIGN KEY (box_id) REFERENCES llx_boxes_def (rowid); - -ALTER TABLE llx_boxes ADD INDEX idx_boxes_fk_user (fk_user); diff --git a/pgsql/tables/llx_boxes.sql b/pgsql/tables/llx_boxes.sql deleted file mode 100644 index 3d8c73e5d8b..00000000000 --- a/pgsql/tables/llx_boxes.sql +++ /dev/null @@ -1,38 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2003 Rodolphe Quiedeville --- Copyright (C) 2006 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_boxes.sql,v 1.9 2007/12/02 21:53:29 eldy Exp --- =========================================================================== - --- --- position : 0=index.php --- box_order : Box sort order --- - -create table llx_boxes -( - rowid SERIAL PRIMARY KEY, - "box_id" integer NOT NULL, - "position" smallint NOT NULL, - "box_order" varchar(3) NOT NULL, - "fk_user" integer default 0 NOT NULL -); diff --git a/pgsql/tables/llx_boxes_def.sql b/pgsql/tables/llx_boxes_def.sql deleted file mode 100644 index 81fea4860f9..00000000000 --- a/pgsql/tables/llx_boxes_def.sql +++ /dev/null @@ -1,31 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_boxes_def.sql,v 1.6 2008/01/08 19:54:55 eldy Exp --- =========================================================================== - -create table llx_boxes_def -( - rowid SERIAL PRIMARY KEY, - "file" varchar(255) NOT NULL, - "tms" timestamp, - "note" text -); diff --git a/pgsql/tables/llx_c_actioncomm.sql b/pgsql/tables/llx_c_actioncomm.sql deleted file mode 100644 index 677e2d993e3..00000000000 --- a/pgsql/tables/llx_c_actioncomm.sql +++ /dev/null @@ -1,35 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville --- Copyright (C) 2004 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_c_actioncomm.sql,v 1.8 2007/12/02 21:57:09 eldy Exp --- ======================================================================== - -create table llx_c_actioncomm -( - id integer PRIMARY KEY, - "code" varchar(12) UNIQUE NOT NULL, - "type" varchar(10) DEFAULT 'system' NOT NULL, - "libelle" varchar(30) NOT NULL, - "module" varchar(16) DEFAULT NULL, - "active" smallint DEFAULT 1 NOT NULL, - "todo" smallint -); diff --git a/pgsql/tables/llx_c_barcode_type.sql b/pgsql/tables/llx_c_barcode_type.sql deleted file mode 100644 index 19b21644935..00000000000 --- a/pgsql/tables/llx_c_barcode_type.sql +++ /dev/null @@ -1,33 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2007 Regis Houssin --- Copyright (C) 2008 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_c_barcode_type.sql,v 1.5 2008/08/13 11:53:14 eldy Exp --- ======================================================================== - -create table llx_c_barcode_type -( - rowid SERIAL PRIMARY KEY, - "code" varchar(16) NOT NULL, - "libelle" varchar(50) NOT NULL, - "coder" varchar(16) NOT NULL, - "example" varchar(16) NOT NULL -); diff --git a/pgsql/tables/llx_c_chargesociales.sql b/pgsql/tables/llx_c_chargesociales.sql deleted file mode 100644 index 19517b76b90..00000000000 --- a/pgsql/tables/llx_c_chargesociales.sql +++ /dev/null @@ -1,36 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville --- Copyright (C) 2004 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_c_chargesociales.sql,v 1.8 2007/12/02 21:57:09 eldy Exp --- ======================================================================== - -create table llx_c_chargesociales -( - id SERIAL PRIMARY KEY, - "libelle" varchar(80), - "deductible" smallint DEFAULT 0 NOT NULL, - "active" smallint DEFAULT 1 NOT NULL, - "actioncompta" varchar(12) NOT NULL -); - - - diff --git a/pgsql/tables/llx_c_civilite.sql b/pgsql/tables/llx_c_civilite.sql deleted file mode 100644 index 68be5e83602..00000000000 --- a/pgsql/tables/llx_c_civilite.sql +++ /dev/null @@ -1,33 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2004 Benoit Mortier --- Copyright (C) 2004 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_c_civilite.sql,v 1.6 2007/12/02 21:57:09 eldy Exp --- ======================================================================== - -create table llx_c_civilite -( - rowid integer PRIMARY KEY, - "code" varchar(6) UNIQUE NOT NULL, - "civilite" varchar(50), - "active" smallint DEFAULT 1 NOT NULL -); - diff --git a/pgsql/tables/llx_c_currencies.key.sql b/pgsql/tables/llx_c_currencies.key.sql deleted file mode 100644 index d6304bc5ceb..00000000000 --- a/pgsql/tables/llx_c_currencies.key.sql +++ /dev/null @@ -1,26 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_c_currencies.key.sql,v 1.2 2007/12/02 21:57:09 eldy Exp --- ======================================================================== - - -ALTER TABLE llx_c_currencies ADD UNIQUE uk_c_currencies_code_iso(code_iso); diff --git a/pgsql/tables/llx_c_currencies.sql b/pgsql/tables/llx_c_currencies.sql deleted file mode 100644 index 28682d83b19..00000000000 --- a/pgsql/tables/llx_c_currencies.sql +++ /dev/null @@ -1,32 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_c_currencies.sql,v 1.3 2007/12/02 21:57:09 eldy Exp --- ======================================================================== - -create table llx_c_currencies -( - code varchar(2) PRIMARY KEY, - "code_iso" varchar(3) NOT NULL, - "label" varchar(64), - "active" smallint DEFAULT 1 NOT NULL -); - diff --git a/pgsql/tables/llx_c_departements.key.sql b/pgsql/tables/llx_c_departements.key.sql deleted file mode 100644 index d1ccf0a1e1c..00000000000 --- a/pgsql/tables/llx_c_departements.key.sql +++ /dev/null @@ -1,29 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_c_departements.key.sql,v 1.3 2007/12/02 21:57:09 eldy Exp --- ============================================================================ - - -ALTER TABLE llx_c_departements ADD UNIQUE uk_departements (code_departement,fk_region); - - -ALTER TABLE llx_c_departements ADD INDEX idx_departements_fk_region (fk_region); diff --git a/pgsql/tables/llx_c_departements.sql b/pgsql/tables/llx_c_departements.sql deleted file mode 100644 index 707b1d5decc..00000000000 --- a/pgsql/tables/llx_c_departements.sql +++ /dev/null @@ -1,39 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2004 Rodolphe Quiedeville --- Copyright (C) 2004 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_c_departements.sql,v 1.9 2007/12/02 21:57:09 eldy Exp --- ======================================================================== - -create table llx_c_departements -( - rowid SERIAL PRIMARY KEY, - "code_departement" varchar(6) NOT NULL, - "fk_region" integer, - "cheflieu" varchar(7), - "tncc" integer, - "ncc" varchar(50), - "nom" varchar(50), - "active" smallint DEFAULT 1 NOT NULL -); - - - diff --git a/pgsql/tables/llx_c_ecotaxe.sql b/pgsql/tables/llx_c_ecotaxe.sql deleted file mode 100644 index 48c17f774cd..00000000000 --- a/pgsql/tables/llx_c_ecotaxe.sql +++ /dev/null @@ -1,34 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2007 Régis Houssin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_c_ecotaxe.sql,v 1.7 2007/12/02 21:57:09 eldy Exp --- ======================================================================== - -create table llx_c_ecotaxe -( - rowid SERIAL PRIMARY KEY, - "code" varchar(64) UNIQUE NOT NULL, -- Code servant à la traduction et à la référence interne - "libelle" varchar(255), -- Description - "price" real(24,8), -- Montant HT - "organization" varchar(255), -- Organisme gérant le barème tarifaire - "fk_pays" integer NOT NULL, -- Pays correspondant - "active" smallint DEFAULT 1 NOT NULL -); \ No newline at end of file diff --git a/pgsql/tables/llx_c_effectif.sql b/pgsql/tables/llx_c_effectif.sql deleted file mode 100644 index c9a05d9a23f..00000000000 --- a/pgsql/tables/llx_c_effectif.sql +++ /dev/null @@ -1,33 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville --- Copyright (C) 2004 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_c_effectif.sql,v 1.6 2007/12/02 21:57:09 eldy Exp --- ======================================================================== - -create table llx_c_effectif -( - id integer PRIMARY KEY, - "code" varchar(12) UNIQUE NOT NULL, - "libelle" varchar(30), - "active" smallint DEFAULT 1 NOT NULL -); - diff --git a/pgsql/tables/llx_c_forme_juridique.sql b/pgsql/tables/llx_c_forme_juridique.sql deleted file mode 100644 index a2fa2c85753..00000000000 --- a/pgsql/tables/llx_c_forme_juridique.sql +++ /dev/null @@ -1,36 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2004 Rodolphe Quiedeville --- Copyright (C) 2004 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_c_forme_juridique.sql,v 1.9 2008/02/17 15:20:48 eldy Exp --- ======================================================================== - - -create table llx_c_forme_juridique -( - rowid SERIAL PRIMARY KEY, - "code" varchar(12) UNIQUE NOT NULL, - "fk_pays" integer NOT NULL, - "libelle" varchar(255), - "isvatexempted" smallint DEFAULT 0 NOT NULL, - "active" smallint DEFAULT 1 NOT NULL -); - diff --git a/pgsql/tables/llx_c_methode_commande_fournisseur.sql b/pgsql/tables/llx_c_methode_commande_fournisseur.sql deleted file mode 100644 index 2e6ebb66405..00000000000 --- a/pgsql/tables/llx_c_methode_commande_fournisseur.sql +++ /dev/null @@ -1,37 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2004-2005 Rodolphe Quiedeville --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_c_methode_commande_fournisseur.sql,v 1.5 2007/12/02 21:57:09 eldy Exp --- ======================================================================== - - -create table llx_c_methode_commande_fournisseur -( - rowid SERIAL PRIMARY KEY, - "code" varchar(30), - "libelle" varchar(60), - "active" smallint default 1 NOT NULL, - UNIQUE(code) -); - -CREATE INDEX idx_llx_c_methode_commande_fournisseur_code ON llx_c_methode_commande_fournisseur (code); - diff --git a/pgsql/tables/llx_c_paiement.sql b/pgsql/tables/llx_c_paiement.sql deleted file mode 100644 index 21cf180d79c..00000000000 --- a/pgsql/tables/llx_c_paiement.sql +++ /dev/null @@ -1,43 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2001-2004 Rodolphe Quiedeville --- Copyright (C) 2004 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_c_paiement.sql,v 1.8 2007/12/02 21:57:09 eldy Exp --- ======================================================================== - - --- Type : --- --- 0 : entrée d'argent --- 1 : sortie d'argent --- 2 : entrée ou sortie d'argent - -create table llx_c_paiement -( - id integer PRIMARY KEY, - "code" varchar(6) UNIQUE NOT NULL, - "libelle" varchar(30), - "type" smallint, - "active" smallint DEFAULT 1 NOT NULL -); - - - diff --git a/pgsql/tables/llx_c_paper_format.sql b/pgsql/tables/llx_c_paper_format.sql deleted file mode 100644 index 4e1795ae33a..00000000000 --- a/pgsql/tables/llx_c_paper_format.sql +++ /dev/null @@ -1,42 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2007 Regis Houssin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_c_paper_format.sql,v 1.3 2007/12/02 21:57:09 eldy Exp --- ======================================================================== - -create table llx_c_paper_format -( - rowid SERIAL PRIMARY KEY, - "code" varchar(16) NOT NULL, - "label" varchar(50) NOT NULL, - "width" float(6,2) DEFAULT 0, -- Largeur du papier - "height" float(6,2) DEFAULT 0, -- Hauteur du papier - "unit" varchar(5) CHECK (unit IN ('mm','cm','point','inch')) NOT NULL, -- Unité de mesure - "active" smallint DEFAULT 1 NOT NULL -); - --- --- Conversion --- --- un inch = 2.54 cm --- 1 point = 1cm * (72/2.54) --- 1 point = 1mm * (72/25.4) --- 1 point = 1in * 72 \ No newline at end of file diff --git a/pgsql/tables/llx_c_pays.key.sql b/pgsql/tables/llx_c_pays.key.sql deleted file mode 100644 index d1d9695860d..00000000000 --- a/pgsql/tables/llx_c_pays.key.sql +++ /dev/null @@ -1,28 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_c_pays.key.sql,v 1.2 2007/12/02 21:57:09 eldy Exp --- ======================================================================== - - -ALTER TABLE llx_c_pays ADD UNIQUE INDEX idx_c_pays_code (code); -ALTER TABLE llx_c_pays ADD UNIQUE INDEX idx_c_pays_code_iso (code_iso); -ALTER TABLE llx_c_pays ADD UNIQUE INDEX idx_c_pays_libelle (libelle); diff --git a/pgsql/tables/llx_c_pays.sql b/pgsql/tables/llx_c_pays.sql deleted file mode 100644 index abd90657673..00000000000 --- a/pgsql/tables/llx_c_pays.sql +++ /dev/null @@ -1,33 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville --- Copyright (C) 2004 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_c_pays.sql,v 1.12 2007/12/02 21:57:09 eldy Exp --- ======================================================================== - -create table llx_c_pays -( - rowid integer PRIMARY KEY, - "code" varchar(2) NOT NULL, - "code_iso" varchar(3) , - "libelle" varchar(50) NOT NULL, - "active" smallint DEFAULT 1 NOT NULL -); diff --git a/pgsql/tables/llx_c_propalst.sql b/pgsql/tables/llx_c_propalst.sql deleted file mode 100644 index 3476c13e19e..00000000000 --- a/pgsql/tables/llx_c_propalst.sql +++ /dev/null @@ -1,33 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville --- Copyright (C) 2004 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_c_propalst.sql,v 1.6 2007/12/02 21:57:09 eldy Exp --- =================================================================== - -create table llx_c_propalst -( - id smallint PRIMARY KEY, - "code" varchar(12) UNIQUE NOT NULL, - "label" varchar(30), - "active" smallint DEFAULT 1 NOT NULL -); - diff --git a/pgsql/tables/llx_c_prospectlevel.sql b/pgsql/tables/llx_c_prospectlevel.sql deleted file mode 100644 index 50609e2ca2b..00000000000 --- a/pgsql/tables/llx_c_prospectlevel.sql +++ /dev/null @@ -1,32 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2008 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_c_prospectlevel.sql,v 1.1 2008/03/01 01:13:17 eldy Exp --- =================================================================== - -create table llx_c_prospectlevel -( - code varchar(12) PRIMARY KEY, - "label" varchar(30), - "sortorder" smallint, - "active" smallint DEFAULT 1 NOT NULL -); - diff --git a/pgsql/tables/llx_c_regions.key.sql b/pgsql/tables/llx_c_regions.key.sql deleted file mode 100644 index 775f731cc2b..00000000000 --- a/pgsql/tables/llx_c_regions.key.sql +++ /dev/null @@ -1,27 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_c_regions.key.sql,v 1.4 2007/12/02 21:57:09 eldy Exp --- ======================================================================== - - -ALTER TABLE llx_c_regions ADD INDEX idx_c_regions_fk_pays (fk_pays); -ALTER TABLE llx_c_regions ADD CONSTRAINT fk_c_regions_fk_pays FOREIGN KEY (fk_pays) REFERENCES llx_c_pays (rowid); diff --git a/pgsql/tables/llx_c_regions.sql b/pgsql/tables/llx_c_regions.sql deleted file mode 100644 index f69209c5244..00000000000 --- a/pgsql/tables/llx_c_regions.sql +++ /dev/null @@ -1,36 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville --- Copyright (C) 2004 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_c_regions.sql,v 1.11 2007/12/02 21:57:10 eldy Exp --- ======================================================================== - -create table llx_c_regions -( - rowid SERIAL PRIMARY KEY, - "code_region" integer UNIQUE NOT NULL, - "fk_pays" integer NOT NULL, - "cheflieu" varchar(7), - "tncc" integer, - "nom" varchar(50), - "active" smallint DEFAULT 1 NOT NULL -); - diff --git a/pgsql/tables/llx_c_stcomm.sql b/pgsql/tables/llx_c_stcomm.sql deleted file mode 100644 index 2b4cc228fbf..00000000000 --- a/pgsql/tables/llx_c_stcomm.sql +++ /dev/null @@ -1,33 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville --- Copyright (C) 2004 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_c_stcomm.sql,v 1.6 2007/12/02 21:57:10 eldy Exp --- ======================================================================== - -create table llx_c_stcomm -( - id integer PRIMARY KEY, - "code" varchar(12) UNIQUE NOT NULL, - "libelle" varchar(30), - "active" smallint default 1 NOT NULL -); - diff --git a/pgsql/tables/llx_c_tva.sql b/pgsql/tables/llx_c_tva.sql deleted file mode 100644 index 8333212215b..00000000000 --- a/pgsql/tables/llx_c_tva.sql +++ /dev/null @@ -1,35 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_c_tva.sql,v 1.3 2007/12/02 21:57:10 eldy Exp --- ======================================================================== - - -create table llx_c_tva -( - rowid SERIAL PRIMARY KEY, - "fk_pays" integer NOT NULL, - "taux" real NOT NULL, - "recuperableonly" integer NOT NULL DEFAULT 0, - "note" varchar(128), - "active" smallint DEFAULT 1 NOT NULL -); - diff --git a/pgsql/tables/llx_c_type_contact.key.sql b/pgsql/tables/llx_c_type_contact.key.sql deleted file mode 100644 index 603d7b0e143..00000000000 --- a/pgsql/tables/llx_c_type_contact.key.sql +++ /dev/null @@ -1,37 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2005 Patrick Rouillon --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_c_type_contact.key.sql,v 1.3 2007/12/02 21:57:10 eldy Exp --- ======================================================================== --- Defini les types de contact d'un element sert de reference pour --- la table llx_element_contact --- --- element est le nom de la table utilisant le type de contact. --- i.e. contact, facture, projet, societe (sans le llx_ devant). --- Libelle est un texte décrivant le type de contact. --- active précide si cette valeur est active ou 'archivé'. - - - -ALTER TABLE llx_c_type_contact - ADD UNIQUE INDEX idx_c_type_contact_uk (element, source, code); - diff --git a/pgsql/tables/llx_c_type_contact.sql b/pgsql/tables/llx_c_type_contact.sql deleted file mode 100644 index 929c7a727e6..00000000000 --- a/pgsql/tables/llx_c_type_contact.sql +++ /dev/null @@ -1,43 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2005 Patrick Rouillon --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Defini les types de contact d'un element sert de reference pour --- la table llx_element_contact --- --- element est le nom de la table utilisant le type de contact. --- i.e. contact, facture, projet, societe (sans le llx_ devant). --- Libelle est un texte décrivant le type de contact. --- active précide si cette valeur est active ou 'archivé'. --- --- Id: llx_c_type_contact.sql,v 1.5 2007/12/02 21:57:10 eldy Exp --- ======================================================================== - - -create table llx_c_type_contact -( - rowid integer PRIMARY KEY, - "element" varchar(30) NOT NULL, - "source" varchar(8) DEFAULT 'external' NOT NULL, - "code" varchar(16) NOT NULL, - "libelle" varchar(64) NOT NULL, - "active" smallint DEFAULT 1 NOT NULL -); diff --git a/pgsql/tables/llx_c_type_fees.sql b/pgsql/tables/llx_c_type_fees.sql deleted file mode 100644 index 8e815d886f3..00000000000 --- a/pgsql/tables/llx_c_type_fees.sql +++ /dev/null @@ -1,32 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville --- Copyright (C) 2004 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_c_type_fees.sql,v 1.1 2008/05/26 00:03:52 eldy Exp --- ======================================================================== - -create table llx_c_type_fees -( - id SERIAL PRIMARY KEY, - "code" varchar(12) UNIQUE NOT NULL, - "libelle" varchar(30), - "active" smallint DEFAULT 1 NOT NULL -); diff --git a/pgsql/tables/llx_c_typent.sql b/pgsql/tables/llx_c_typent.sql deleted file mode 100644 index 9e4da8640b5..00000000000 --- a/pgsql/tables/llx_c_typent.sql +++ /dev/null @@ -1,32 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville --- Copyright (C) 2004 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_c_typent.sql,v 1.6 2007/12/02 21:57:10 eldy Exp --- ======================================================================== - -create table llx_c_typent -( - id integer PRIMARY KEY, - "code" varchar(12) UNIQUE NOT NULL, - "libelle" varchar(30), - "active" smallint DEFAULT 1 NOT NULL -); diff --git a/pgsql/tables/llx_categorie.key.sql b/pgsql/tables/llx_categorie.key.sql deleted file mode 100644 index 25f2ab1ec97..00000000000 --- a/pgsql/tables/llx_categorie.key.sql +++ /dev/null @@ -1,25 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2007 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_categorie.key.sql,v 1.4 2007/12/02 22:03:22 eldy Exp --- ============================================================================ - -ALTER TABLE llx_categorie ADD UNIQUE INDEX uk_categorie_ref (label,type); diff --git a/pgsql/tables/llx_categorie.sql b/pgsql/tables/llx_categorie.sql deleted file mode 100644 index 9dc8f1f4a28..00000000000 --- a/pgsql/tables/llx_categorie.sql +++ /dev/null @@ -1,34 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2005 Brice Davoleau --- Copyright (C) 2005 Matthieu Valleton --- Copyright (C) 2005-2006 Regis Houssin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_categorie.sql,v 1.6 2007/12/02 22:03:22 eldy Exp --- ============================================================================ - -create table llx_categorie -( - rowid SERIAL PRIMARY KEY, - "label" VARCHAR(255), -- nom de la catégorie - "description" text, -- description de la catégorie - "visible" smallint DEFAULT 1 NOT NULL, -- determine si les produits sont visible ou pas - "type" smallint DEFAULT 1 NOT NULL -- Type de catégorie (product, supplier, societe) -); diff --git a/pgsql/tables/llx_categorie_association.key.sql b/pgsql/tables/llx_categorie_association.key.sql deleted file mode 100644 index d6f5b6ec1ff..00000000000 --- a/pgsql/tables/llx_categorie_association.key.sql +++ /dev/null @@ -1,32 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2005 Brice Davoleau --- Copyright (C) 2005 Matthieu Valleton --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_categorie_association.key.sql,v 1.4 2007/12/02 22:03:22 eldy Exp --- ============================================================================ - - -ALTER TABLE llx_categorie_association ADD INDEX idx_categorie_association_fk_categorie_mere (fk_categorie_mere); -ALTER TABLE llx_categorie_association ADD INDEX idx_categorie_association_fk_categorie_fille (fk_categorie_fille); - -ALTER TABLE llx_categorie_association ADD CONSTRAINT fk_categorie_asso_fk_categorie_mere FOREIGN KEY (fk_categorie_mere) REFERENCES llx_categorie (rowid); -ALTER TABLE llx_categorie_association ADD CONSTRAINT fk_categorie_asso_fk_categorie_fille FOREIGN KEY (fk_categorie_fille) REFERENCES llx_categorie (rowid); diff --git a/pgsql/tables/llx_categorie_association.sql b/pgsql/tables/llx_categorie_association.sql deleted file mode 100644 index 7c4c0f5db32..00000000000 --- a/pgsql/tables/llx_categorie_association.sql +++ /dev/null @@ -1,30 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2005 Brice Davoleau --- Copyright (C) 2005 Matthieu Valleton --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_categorie_association.sql,v 1.2 2007/12/02 22:03:22 eldy Exp --- ============================================================================ - -create table llx_categorie_association -( - "fk_categorie_mere" integer NOT NULL, - "fk_categorie_fille" integer NOT NULL -); diff --git a/pgsql/tables/llx_categorie_fournisseur.sql b/pgsql/tables/llx_categorie_fournisseur.sql deleted file mode 100644 index c647ec6231a..00000000000 --- a/pgsql/tables/llx_categorie_fournisseur.sql +++ /dev/null @@ -1,32 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2006 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_categorie_fournisseur.sql,v 1.3 2007/12/02 22:03:22 eldy Exp --- ============================================================================ - -create table llx_categorie_fournisseur -( - "fk_categorie" integer NOT NULL, - "fk_societe" integer NOT NULL, - UNIQUE(fk_categorie, fk_societe) -); - -CREATE INDEX idx_llx_categorie_fournisseur_fk_categorie_fk_societe ON llx_categorie_fournisseur (fk_categorie, fk_societe); diff --git a/pgsql/tables/llx_categorie_product.key.sql b/pgsql/tables/llx_categorie_product.key.sql deleted file mode 100644 index 8450924779f..00000000000 --- a/pgsql/tables/llx_categorie_product.key.sql +++ /dev/null @@ -1,32 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2005 Brice Davoleau --- Copyright (C) 2005 Matthieu Valleton --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_categorie_product.key.sql,v 1.4 2007/12/02 22:03:22 eldy Exp --- ============================================================================ - -ALTER TABLE llx_categorie_product ADD PRIMARY KEY (fk_categorie, fk_product); -ALTER TABLE llx_categorie_product ADD INDEX idx_categorie_product_fk_categorie (fk_categorie); -ALTER TABLE llx_categorie_product ADD INDEX idx_categorie_product_fk_product (fk_product); - -ALTER TABLE llx_categorie_product ADD CONSTRAINT fk_categorie_product_categorie_rowid FOREIGN KEY (fk_categorie) REFERENCES llx_categorie (rowid); -ALTER TABLE llx_categorie_product ADD CONSTRAINT fk_categorie_product_product_rowid FOREIGN KEY (fk_product) REFERENCES llx_product (rowid); diff --git a/pgsql/tables/llx_categorie_product.sql b/pgsql/tables/llx_categorie_product.sql deleted file mode 100644 index 13b49fcb52e..00000000000 --- a/pgsql/tables/llx_categorie_product.sql +++ /dev/null @@ -1,30 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2005 Brice Davoleau --- Copyright (C) 2005 Matthieu Valleton --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_categorie_product.sql,v 1.2 2007/12/02 22:03:22 eldy Exp --- ============================================================================ - -create table llx_categorie_product -( - "fk_categorie" integer NOT NULL, - "fk_product" integer NOT NULL -); diff --git a/pgsql/tables/llx_categorie_societe.key.sql b/pgsql/tables/llx_categorie_societe.key.sql deleted file mode 100644 index 1039d2198f7..00000000000 --- a/pgsql/tables/llx_categorie_societe.key.sql +++ /dev/null @@ -1,30 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2007 Patrick Raguin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_categorie_societe.key.sql,v 1.13 2007/12/03 00:13:10 eldy Exp --- ============================================================================ - -ALTER TABLE llx_categorie_societe ADD PRIMARY KEY (fk_categorie, fk_societe); -ALTER TABLE llx_categorie_societe ADD INDEX idx_categorie_societe_fk_categorie (fk_categorie); -ALTER TABLE llx_categorie_societe ADD INDEX idx_categorie_societe_fk_societe (fk_societe); - -ALTER TABLE llx_categorie_societe ADD CONSTRAINT fk_categorie_societe_categorie_rowid FOREIGN KEY (fk_categorie) REFERENCES llx_categorie (rowid); -ALTER TABLE llx_categorie_societe ADD CONSTRAINT fk_categorie_societe_fk_soc FOREIGN KEY (fk_societe) REFERENCES llx_societe (rowid); diff --git a/pgsql/tables/llx_categorie_societe.sql b/pgsql/tables/llx_categorie_societe.sql deleted file mode 100644 index edbd0830eab..00000000000 --- a/pgsql/tables/llx_categorie_societe.sql +++ /dev/null @@ -1,29 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2007 Patrick Raguin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_categorie_societe.sql,v 1.5 2007/12/03 00:13:25 eldy Exp --- ============================================================================ - -create table llx_categorie_societe -( - "fk_categorie" integer NOT NULL, - "fk_societe" integer NOT NULL -); diff --git a/pgsql/tables/llx_chargesociales.sql b/pgsql/tables/llx_chargesociales.sql deleted file mode 100644 index 969d2c488ed..00000000000 --- a/pgsql/tables/llx_chargesociales.sql +++ /dev/null @@ -1,37 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2001-2002 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_chargesociales.sql,v 1.8 2007/12/16 20:40:10 eldy Exp --- ======================================================================== - -create table llx_chargesociales -( - rowid SERIAL PRIMARY KEY, - "date_ech" timestamp, -- date d'echeance - "libelle" varchar(80) NOT NULL, - "fk_type" integer NOT NULL, - "amount" real default 0 NOT NULL, - "paye" smallint default 0 NOT NULL, - "periode" date -); - - - diff --git a/pgsql/tables/llx_co_exp.sql b/pgsql/tables/llx_co_exp.sql deleted file mode 100644 index b406369e788..00000000000 --- a/pgsql/tables/llx_co_exp.sql +++ /dev/null @@ -1,35 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- Copyright (C) 2008 Regis Houssin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_co_exp.sql,v 1.1 2008/01/17 10:28:28 hregis Exp --- =================================================================== - - -create table llx_co_exp -( - rowid SERIAL PRIMARY KEY, - "fk_commande" integer NOT NULL, - "fk_expedition" integer NOT NULL -); - -CREATE INDEX idx_llx_co_exp_fk_commande ON llx_co_exp (fk_commande); -CREATE INDEX idx_llx_co_exp_fk_expedition ON llx_co_exp (fk_expedition); diff --git a/pgsql/tables/llx_co_fa.sql b/pgsql/tables/llx_co_fa.sql deleted file mode 100644 index 9fa2425c34f..00000000000 --- a/pgsql/tables/llx_co_fa.sql +++ /dev/null @@ -1,34 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_co_fa.sql,v 1.3 2007/12/02 22:03:23 eldy Exp --- =================================================================== - - -create table llx_co_fa -( - rowid SERIAL PRIMARY KEY, - "fk_commande" integer NOT NULL, - "fk_facture" integer NOT NULL -); - -CREATE INDEX idx_llx_co_fa_fk_commande ON llx_co_fa (fk_commande); -CREATE INDEX idx_llx_co_fa_fk_facture ON llx_co_fa (fk_facture); diff --git a/pgsql/tables/llx_co_liv.sql b/pgsql/tables/llx_co_liv.sql deleted file mode 100644 index 5c828e42c65..00000000000 --- a/pgsql/tables/llx_co_liv.sql +++ /dev/null @@ -1,35 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- Copyright (C) 2008 Regis Houssin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_co_liv.sql,v 1.1 2008/01/21 19:20:24 hregis Exp --- =================================================================== - - -create table llx_co_liv -( - rowid SERIAL PRIMARY KEY, - "fk_commande" integer NOT NULL, - "fk_livraison" integer NOT NULL -); - -CREATE INDEX idx_llx_co_liv_fk_commande ON llx_co_liv (fk_commande); -CREATE INDEX idx_llx_co_liv_fk_livraison ON llx_co_liv (fk_livraison); diff --git a/pgsql/tables/llx_co_pr.sql b/pgsql/tables/llx_co_pr.sql deleted file mode 100644 index 1becdb5e8f4..00000000000 --- a/pgsql/tables/llx_co_pr.sql +++ /dev/null @@ -1,30 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_co_pr.sql,v 1.3 2007/12/02 22:03:23 eldy Exp --- =================================================================== - -create table llx_co_pr -( - rowid SERIAL PRIMARY KEY, - "fk_commande" integer, - "fk_propale" integer -); diff --git a/pgsql/tables/llx_commande.key.sql b/pgsql/tables/llx_commande.key.sql deleted file mode 100644 index c3f41aefc61..00000000000 --- a/pgsql/tables/llx_commande.key.sql +++ /dev/null @@ -1,30 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2006 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_commande.key.sql,v 1.3 2007/12/02 22:03:23 eldy Exp --- ============================================================================ - - --- Supprimme orphelins pour permettre montée de la clé --- V4 DELETE llx_commande FROM llx_commande LEFT JOIN llx_societe ON llx_commande.fk_soc = llx_societe.rowid WHERE llx_societe.rowid IS NULL; - -ALTER TABLE llx_commande ADD INDEX idx_commande_fk_soc (fk_soc); -ALTER TABLE llx_commande ADD CONSTRAINT fk_commande_fk_soc FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid); diff --git a/pgsql/tables/llx_commande.sql b/pgsql/tables/llx_commande.sql deleted file mode 100644 index 0b40402b284..00000000000 --- a/pgsql/tables/llx_commande.sql +++ /dev/null @@ -1,63 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_commande.sql,v 1.16 2008/01/21 19:17:56 hregis Exp --- =================================================================== - - - - -create table llx_commande -( - rowid SERIAL PRIMARY KEY, - "tms" timestamp, - "fk_soc" integer NOT NULL, - "fk_projet" integer DEFAULT 0, -- projet auquel est rattache la commande - "ref" varchar(30) NOT NULL, -- order number - "ref_client" varchar(30), -- customer order number - "date_creation" timestamp, -- date de creation - "date_valid" timestamp, -- date de validation - "date_cloture" timestamp, -- date de cloture - "date_commande" date, -- date de la commande - "fk_user_author" integer, -- createur de la commande - "fk_user_valid" integer, -- valideur de la commande - "fk_user_cloture" integer, -- auteur cloture - "source" smallint NOT NULL, - "fk_statut" smallint default 0, - "amount_ht" real default 0, - "remise_percent" real default 0, - "remise_absolue" real default 0, - "remise" real default 0, - "tva" real(24,8) default 0, - "total_ht" real(24,8) default 0, - "total_ttc" real(24,8) default 0, - "note" text, - "note_public" text, - "model_pdf" varchar(50), - "facture" smallint default 0, - "fk_cond_reglement" integer, -- condition de réglement - "fk_mode_reglement" integer, -- mode de réglement - "date_livraison" date default NULL, - "fk_adresse_livraison" integer, -- adresse de livraison - UNIQUE(ref) -); - -CREATE INDEX idx_llx_commande_ref ON llx_commande (ref); diff --git a/pgsql/tables/llx_commande_fournisseur.key.sql b/pgsql/tables/llx_commande_fournisseur.key.sql deleted file mode 100644 index c8f9dfad727..00000000000 --- a/pgsql/tables/llx_commande_fournisseur.key.sql +++ /dev/null @@ -1,32 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2006-2007 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_commande_fournisseur.key.sql,v 1.4 2007/12/02 22:03:23 eldy Exp --- ============================================================================ - - --- Supprimme orphelins pour permettre montée de la clé --- V4 DELETE llx_commande_fournisseur FROM llx_commande_fournisseur LEFT JOIN llx_societe ON llx_commande_fournisseur.fk_soc = llx_societe.rowid WHERE llx_societe.rowid IS NULL; - -ALTER TABLE llx_commande_fournisseur ADD UNIQUE INDEX uk_commande_fournisseur_ref (ref, fk_soc); - -ALTER TABLE llx_commande_fournisseur ADD INDEX idx_commande_fournisseur_fk_soc (fk_soc); -ALTER TABLE llx_commande_fournisseur ADD CONSTRAINT fk_commande_fournisseur_fk_soc FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid); diff --git a/pgsql/tables/llx_commande_fournisseur.sql b/pgsql/tables/llx_commande_fournisseur.sql deleted file mode 100644 index 44a98c60790..00000000000 --- a/pgsql/tables/llx_commande_fournisseur.sql +++ /dev/null @@ -1,54 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2004 Rodolphe Quiedeville --- Copyright (C) 2007 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_commande_fournisseur.sql,v 1.8 2007/12/02 22:03:23 eldy Exp --- =================================================================== - - - -create table llx_commande_fournisseur -( - rowid SERIAL PRIMARY KEY, - "tms" timestamp, - "fk_soc" integer NOT NULL, - "fk_projet" integer DEFAULT 0, -- projet auquel est rattache la commande - "ref" varchar(30) NOT NULL, -- order number - "date_creation" timestamp, -- date de creation - "date_valid" timestamp, -- date de validation - "date_cloture" timestamp, -- date de cloture - "date_commande" date, -- date de la commande - "fk_user_author" integer, -- createur de la commande - "fk_user_valid" integer, -- valideur de la commande - "fk_user_cloture" integer, -- auteur cloture - "source" smallint NOT NULL, - "fk_statut" smallint default 0, - "amount_ht" real default 0, - "remise_percent" real default 0, - "remise" real default 0, - "tva" real(24,8) default 0, - "total_ht" real(24,8) default 0, - "total_ttc" real(24,8) default 0, - "note" text, - "note_public" text, - "model_pdf" varchar(50), - "fk_methode_commande" integer default 0 -); diff --git a/pgsql/tables/llx_commande_fournisseur_dispatch.key.sql b/pgsql/tables/llx_commande_fournisseur_dispatch.key.sql deleted file mode 100644 index c127116f557..00000000000 --- a/pgsql/tables/llx_commande_fournisseur_dispatch.key.sql +++ /dev/null @@ -1,25 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2006 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_commande_fournisseur_dispatch.key.sql,v 1.3 2007/12/11 01:33:54 eldy Exp --- =================================================================== - -ALTER TABLE llx_commande_fournisseur_dispatch ADD INDEX idx_commande_fournisseur_dispatch_fk_commande (fk_commande); \ No newline at end of file diff --git a/pgsql/tables/llx_commande_fournisseur_dispatch.sql b/pgsql/tables/llx_commande_fournisseur_dispatch.sql deleted file mode 100644 index 15f8ec02bb3..00000000000 --- a/pgsql/tables/llx_commande_fournisseur_dispatch.sql +++ /dev/null @@ -1,34 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2006 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_commande_fournisseur_dispatch.sql,v 1.2 2007/12/02 22:03:23 eldy Exp --- =================================================================== - -create table llx_commande_fournisseur_dispatch -( - rowid SERIAL PRIMARY KEY, - "fk_commande" integer, - "fk_product" integer, - "qty" float, -- quantité - "fk_entrepot" integer, - "fk_user" integer, - "datec" timestamp -); diff --git a/pgsql/tables/llx_commande_fournisseur_log.sql b/pgsql/tables/llx_commande_fournisseur_log.sql deleted file mode 100644 index 71265a74fc1..00000000000 --- a/pgsql/tables/llx_commande_fournisseur_log.sql +++ /dev/null @@ -1,33 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2004 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_commande_fournisseur_log.sql,v 1.2 2007/12/02 22:03:23 eldy Exp --- =================================================================== - -create table llx_commande_fournisseur_log -( - rowid SERIAL PRIMARY KEY, - "tms" timestamp, - "datelog" timestamp, - "fk_commande" integer NOT NULL, - "fk_statut" smallint NOT NULL, - "fk_user" integer NOT NULL -); diff --git a/pgsql/tables/llx_commande_fournisseurdet.sql b/pgsql/tables/llx_commande_fournisseurdet.sql deleted file mode 100644 index 29cd4eee9ec..00000000000 --- a/pgsql/tables/llx_commande_fournisseurdet.sql +++ /dev/null @@ -1,43 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2007 Rodolphe Quiedeville --- Copyright (C) 2007 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_commande_fournisseurdet.sql,v 1.10 2008/05/09 09:08:52 hregis Exp --- =================================================================== - -create table llx_commande_fournisseurdet -( - rowid SERIAL PRIMARY KEY, - "fk_commande" integer NOT NULL, - "fk_product" integer, - "ref" varchar(50), - "label" varchar(255), - "description" text, - "tva_tx" real(6,3) DEFAULT 0, -- taux tva - "qty" real, -- quantité - "remise_percent" real DEFAULT 0, -- pourcentage de remise - "remise" real DEFAULT 0, -- montant de la remise - "subprice" real(24,8) DEFAULT 0, -- prix unitaire - "total_ht" real(24,8) DEFAULT 0, -- Total HT de la ligne toute quantité et incluant remise ligne et globale - "total_tva" real(24,8) DEFAULT 0, -- Total TVA de la ligne toute quantité et incluant remise ligne et globale - "total_ttc" real(24,8) DEFAULT 0, -- Total TTC de la ligne toute quantité et incluant remise ligne et globale - "info_bits" integer DEFAULT 0 -- TVA NPR ou non -); diff --git a/pgsql/tables/llx_commandedet.key.sql b/pgsql/tables/llx_commandedet.key.sql deleted file mode 100644 index fab6f71749d..00000000000 --- a/pgsql/tables/llx_commandedet.key.sql +++ /dev/null @@ -1,30 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2006 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_commandedet.key.sql,v 1.3 2007/12/02 22:03:23 eldy Exp --- =================================================================== - - --- Supprimme orhpelins pour permettre montée de la clé --- V4 DELETE llx_commandedet FROM llx_commandedet LEFT JOIN llx_commande ON llx_commandedet.fk_commande = llx_commande.rowid WHERE llx_commande.rowid IS NULL; - -ALTER TABLE llx_commandedet ADD INDEX idx_commandedet_fk_commande (fk_commande); --- V4 ALTER TABLE llx_commandedet ADD CONSTRAINT fk_commandedet_fk_commande FOREIGN KEY (fk_commande) REFERENCES llx_commande (rowid); diff --git a/pgsql/tables/llx_commandedet.sql b/pgsql/tables/llx_commandedet.sql deleted file mode 100644 index d1809f5f44b..00000000000 --- a/pgsql/tables/llx_commandedet.sql +++ /dev/null @@ -1,55 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- Copyright (C) 2006-2007 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_commandedet.sql,v 1.16 2008/01/09 09:48:23 hregis Exp --- =================================================================== - -create table llx_commandedet -( - rowid SERIAL PRIMARY KEY, - "fk_commande" integer, - "fk_product" integer, - "description" text, - "tva_tx" real(6,3), -- taux tva - "qty" real, -- quantité - "remise_percent" real DEFAULT 0, -- pourcentage de remise - "remise" real DEFAULT 0, -- montant de la remise - "fk_remise_except" integer NULL, -- Lien vers table des remises fixes - "price" real, -- prix final - "subprice" real(24,8) DEFAULT 0, -- prix unitaire - "total_ht" real(24,8) DEFAULT 0, -- Total HT de la ligne toute quantité et incluant remise ligne et globale - "total_tva" real(24,8) DEFAULT 0, -- Total TVA de la ligne toute quantité et incluant remise ligne et globale - "total_ttc" real(24,8) DEFAULT 0, -- Total TTC de la ligne toute quantité et incluant remise ligne et globale - "info_bits" integer DEFAULT 0, -- TVA NPR ou non - "marge_tx" real(6,3) DEFAULT 0, -- taux de marge (marge sur prix d'achat) - "marque_tx" real(6,3) DEFAULT 0, -- taux de marque (marge sur prix de vente) - "special_code" int2 DEFAULT 0, -- code pour les lignes speciales - "rang" integer DEFAULT 0 -); - --- --- Liste des codes pour special_code --- --- 1 : frais de port --- 2 : ecotaxe --- 3 : produit/service propose en option --- \ No newline at end of file diff --git a/pgsql/tables/llx_compta.sql b/pgsql/tables/llx_compta.sql deleted file mode 100644 index 82dd1f1b6ab..00000000000 --- a/pgsql/tables/llx_compta.sql +++ /dev/null @@ -1,38 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2000-2002 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_compta.sql,v 1.5 2007/12/02 22:03:23 eldy Exp --- =================================================================== - - -create table llx_compta -( - rowid SERIAL PRIMARY KEY, - "datec" timestamp, - "datev" date, -- date de valeur - "amount" real DEFAULT 0 NOT NULL , - "label" varchar(255), - "fk_compta_account" integer, - "fk_user_author" integer, - "fk_user_valid" integer, - "valid" smallint DEFAULT 0, - "note" text -); diff --git a/pgsql/tables/llx_compta_account.sql b/pgsql/tables/llx_compta_account.sql deleted file mode 100644 index 4b37aedfcac..00000000000 --- a/pgsql/tables/llx_compta_account.sql +++ /dev/null @@ -1,34 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2000-2002 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_compta_account.sql,v 1.5 2007/12/16 20:40:40 eldy Exp --- =================================================================== - - -create table llx_compta_account -( - rowid SERIAL PRIMARY KEY, - "datec" timestamp, - "number" varchar(12), - "label" varchar(255), - "fk_user_author" integer, - "note" text -); diff --git a/pgsql/tables/llx_compta_compte_generaux.sql b/pgsql/tables/llx_compta_compte_generaux.sql deleted file mode 100644 index 51fb2897d31..00000000000 --- a/pgsql/tables/llx_compta_compte_generaux.sql +++ /dev/null @@ -1,37 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2004 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_compta_compte_generaux.sql,v 1.3 2007/12/02 22:03:23 eldy Exp --- =================================================================== - - -create table llx_compta_compte_generaux -( - rowid SERIAL PRIMARY KEY, - "date_creation" timestamp, - "numero" varchar(50), - "intitule" varchar(255), - "fk_user_author" integer, - "note" text, - UNIQUE(numero) -); - -CREATE INDEX idx_llx_compta_compte_generaux_numero ON llx_compta_compte_generaux (numero); diff --git a/pgsql/tables/llx_cond_reglement.sql b/pgsql/tables/llx_cond_reglement.sql deleted file mode 100644 index 57e99e5c84b..00000000000 --- a/pgsql/tables/llx_cond_reglement.sql +++ /dev/null @@ -1,36 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2002-2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_cond_reglement.sql,v 1.8 2007/12/02 22:03:23 eldy Exp --- ============================================================================ - -create table llx_cond_reglement -( - rowid integer PRIMARY KEY, - "code" varchar(16), - "sortorder" smallint, - "active" smallint DEFAULT 1, - "libelle" varchar(255), - "libelle_facture" text, - "fdm" smallint, -- reglement fin de mois - "nbjour" smallint, - "decalage" smallint -); diff --git a/pgsql/tables/llx_const.sql b/pgsql/tables/llx_const.sql deleted file mode 100644 index 82de79cdf8e..00000000000 --- a/pgsql/tables/llx_const.sql +++ /dev/null @@ -1,43 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2001-2002 Rodolphe Quiedeville --- Copyright (C) 2003 Jean-Louis Bergamo --- Copyright (C) 2008 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_const.sql,v 1.10 2008/04/20 11:35:36 eldy Exp --- =========================================================================== - --- --- Table for constants used to store Dolibarr setup --- - -create table llx_const -( - rowid SERIAL PRIMARY KEY, - "name" varchar(255), - "value" text, -- max 65535 caracteres - "type" varchar(6) CHECK (type IN ('yesno','texte','chaine')) , - "visible" smallint DEFAULT 1 NOT NULL, - "note" text, - "tms" timestamp, - UNIQUE(name) -); - -CREATE INDEX idx_llx_const_name ON llx_const (name); diff --git a/pgsql/tables/llx_contrat.key.sql b/pgsql/tables/llx_contrat.key.sql deleted file mode 100644 index 8300d75ebcd..00000000000 --- a/pgsql/tables/llx_contrat.key.sql +++ /dev/null @@ -1,36 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2002-2004 Rodolphe Quiedeville --- Copyright (C) 2004-2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_contrat.key.sql,v 1.11 2007/12/02 22:03:23 eldy Exp --- ============================================================================ - - --- Supprimme orhpelins pour permettre montée de la clé --- V4 DELETE llx_contratdet FROM llx_contratdet, llx_contrat LEFT JOIN llx_societe ON llx_contrat.fk_soc = llx_societe.rowid WHERE llx_contratdet.fk_contrat = llx_contrat.rowid AND llx_societe.rowid IS NULL; --- V4 DELETE llx_contrat FROM llx_contrat LEFT JOIN llx_societe ON llx_contrat.fk_soc = llx_societe.rowid WHERE llx_societe.rowid IS NULL; --- V4 DELETE llx_contrat FROM llx_contrat LEFT JOIN llx_user ON llx_contrat.fk_user_author = llx_user.rowid WHERE llx_user.rowid IS NULL; - -ALTER TABLE llx_contrat ADD INDEX idx_contrat_fk_soc (fk_soc); -ALTER TABLE llx_contrat ADD INDEX idx_contrat_fk_user_author (fk_user_author); - -ALTER TABLE llx_contrat ADD CONSTRAINT fk_contrat_fk_soc FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid); -ALTER TABLE llx_contrat ADD CONSTRAINT fk_contrat_user_author FOREIGN KEY (fk_user_author) REFERENCES llx_user (rowid); \ No newline at end of file diff --git a/pgsql/tables/llx_contrat.sql b/pgsql/tables/llx_contrat.sql deleted file mode 100644 index 3a243a0518f..00000000000 --- a/pgsql/tables/llx_contrat.sql +++ /dev/null @@ -1,47 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2002-2004 Rodolphe Quiedeville --- Copyright (C) 2004-2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_contrat.sql,v 1.13 2007/12/02 22:03:23 eldy Exp --- ============================================================================ - -create table llx_contrat -( - rowid SERIAL PRIMARY KEY, - "ref" varchar(30), -- reference de contrat - "tms" timestamp, - "datec" timestamp, -- date de creation de l'enregistrement - "date_contrat" timestamp, - "statut" smallint DEFAULT 0, - "mise_en_service" timestamp, - "fin_validite" timestamp, - "date_cloture" timestamp, - "fk_soc" integer NOT NULL, - "fk_projet" integer, - "fk_commercial_signature" integer NOT NULL, -- obsolete - "fk_commercial_suivi" integer NOT NULL, -- obsolete - "fk_user_author" integer NOT NULL default 0, - "fk_user_mise_en_service" integer, - "fk_user_cloture" integer, - "note" text, - "note_public" text -); - diff --git a/pgsql/tables/llx_contratdet.key.sql b/pgsql/tables/llx_contratdet.key.sql deleted file mode 100644 index 8361d6d7490..00000000000 --- a/pgsql/tables/llx_contratdet.key.sql +++ /dev/null @@ -1,34 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2004 Rodolphe Quiedeville --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_contratdet.key.sql,v 1.6 2007/12/02 22:03:23 eldy Exp --- ============================================================================ - - -ALTER TABLE llx_contratdet ADD INDEX idx_contratdet_fk_contrat (fk_contrat); -ALTER TABLE llx_contratdet ADD INDEX idx_contratdet_fk_product (fk_product); -ALTER TABLE llx_contratdet ADD INDEX idx_contratdet_date_ouverture_prevue (date_ouverture_prevue); -ALTER TABLE llx_contratdet ADD INDEX idx_contratdet_date_ouverture (date_ouverture); -ALTER TABLE llx_contratdet ADD INDEX idx_contratdet_date_fin_validite (date_fin_validite); - -ALTER TABLE llx_contratdet ADD CONSTRAINT fk_contratdet_fk_contrat FOREIGN KEY (fk_contrat) REFERENCES llx_contrat (rowid); -ALTER TABLE llx_contratdet ADD CONSTRAINT fk_contratdet_fk_product FOREIGN KEY (fk_product) REFERENCES llx_product (rowid); diff --git a/pgsql/tables/llx_contratdet.sql b/pgsql/tables/llx_contratdet.sql deleted file mode 100644 index 48a088906aa..00000000000 --- a/pgsql/tables/llx_contratdet.sql +++ /dev/null @@ -1,61 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2004 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_contratdet.sql,v 1.9 2007/12/02 22:03:23 eldy Exp --- ============================================================================ - - - - - - - - -create table llx_contratdet -( - rowid SERIAL PRIMARY KEY, - "tms" timestamp, - "fk_contrat" integer NOT NULL, - "fk_product" integer NULL, -- doit pouvoir etre nul pour ligne detail sans produits - "statut" smallint DEFAULT 0, - "label" text, -- libellé du produit - "description" text, - "fk_remise_except" integer NULL, -- Lien vers table des remises fixes - "date_commande" timestamp, - "date_ouverture_prevue" timestamp, - "date_ouverture" timestamp, -- date d'ouverture du service chez le client - "date_fin_validite" timestamp, - "date_cloture" timestamp, - "tva_tx" real(6,3) DEFAULT 0, -- taux tva - "qty" real NOT NULL, -- quantité - "remise_percent" real DEFAULT 0, -- pourcentage de remise - "subprice" real(24,8) DEFAULT 0, -- prix unitaire - "price_ht" real, -- prix final (obsolete) - "remise" real DEFAULT 0, -- montant de la remise (obsolete) - "total_ht" real(24,8) DEFAULT 0, -- Total HT de la ligne toute quantité et incluant remise ligne et globale - "total_tva" real(24,8) DEFAULT 0, -- Total TVA de la ligne toute quantité et incluant remise ligne et globale - "total_ttc" real(24,8) DEFAULT 0, -- Total TTC de la ligne toute quantité et incluant remise ligne et globale - "info_bits" integer DEFAULT 0, -- TVA NPR ou non - "fk_user_author" integer NOT NULL DEFAULT 0, - "fk_user_ouverture" integer, - "fk_user_cloture" integer, - "commentaire" text -); diff --git a/pgsql/tables/llx_contratdet_log.key.sql b/pgsql/tables/llx_contratdet_log.key.sql deleted file mode 100644 index add1ba6db7b..00000000000 --- a/pgsql/tables/llx_contratdet_log.key.sql +++ /dev/null @@ -1,28 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2006 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_contratdet_log.key.sql,v 1.2 2007/12/02 22:03:23 eldy Exp --- ============================================================================ - -ALTER TABLE llx_contratdet_log ADD INDEX idx_contratdet_log_fk_contratdet (fk_contratdet); -ALTER TABLE llx_contratdet_log ADD INDEX idx_contratdet_log_date (date); - -ALTER TABLE llx_contratdet_log ADD CONSTRAINT fk_contratdet_log_fk_contratdet FOREIGN KEY (fk_contratdet) REFERENCES llx_contratdet (rowid); diff --git a/pgsql/tables/llx_contratdet_log.sql b/pgsql/tables/llx_contratdet_log.sql deleted file mode 100644 index 3b4b82c0697..00000000000 --- a/pgsql/tables/llx_contratdet_log.sql +++ /dev/null @@ -1,35 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2004 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_contratdet_log.sql,v 1.3 2007/12/02 22:03:23 eldy Exp --- ============================================================================ - - -create table llx_contratdet_log -( - rowid SERIAL PRIMARY KEY, - "tms" timestamp, - "fk_contratdet" integer NOT NULL, - "date" timestamp, - "statut" smallint NOT NULL, - "fk_user_author" integer NOT NULL, - "commentaire" text -); diff --git a/pgsql/tables/llx_cotisation.key.sql b/pgsql/tables/llx_cotisation.key.sql deleted file mode 100644 index 8080183a8ff..00000000000 --- a/pgsql/tables/llx_cotisation.key.sql +++ /dev/null @@ -1,25 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2007 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_cotisation.key.sql,v 1.3 2007/12/02 22:03:23 eldy Exp --- ============================================================================ - -ALTER TABLE llx_cotisation ADD UNIQUE INDEX uk_cotisation (fk_adherent,dateadh); diff --git a/pgsql/tables/llx_cotisation.sql b/pgsql/tables/llx_cotisation.sql deleted file mode 100644 index 32722b2764f..00000000000 --- a/pgsql/tables/llx_cotisation.sql +++ /dev/null @@ -1,36 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_cotisation.sql,v 1.9 2007/12/02 22:03:23 eldy Exp --- =================================================================== - -create table llx_cotisation -( - rowid SERIAL PRIMARY KEY, - "tms" timestamp, - "datec" timestamp, - "fk_adherent" integer, - "dateadh" timestamp, - "datef" date, - "cotisation" real, - "fk_bank" int4 DEFAULT NULL, - "note" text -); diff --git a/pgsql/tables/llx_deplacement.sql b/pgsql/tables/llx_deplacement.sql deleted file mode 100644 index 7054f0d74b8..00000000000 --- a/pgsql/tables/llx_deplacement.sql +++ /dev/null @@ -1,37 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_deplacement.sql,v 1.6 2008/07/12 13:06:11 eldy Exp --- ============================================================================ - -create table llx_deplacement -( - rowid SERIAL PRIMARY KEY, - "datec" timestamp, - "tms" timestamp, - "dated" timestamp, - "fk_user" integer NOT NULL, - "fk_user_author" integer, - "type" varchar(12) NOT NULL, - "km" real, - "fk_soc" integer, - "note" text -); diff --git a/pgsql/tables/llx_document.sql b/pgsql/tables/llx_document.sql deleted file mode 100644 index 6531407f6d2..00000000000 --- a/pgsql/tables/llx_document.sql +++ /dev/null @@ -1,36 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2007 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_document.sql,v 1.3 2007/12/02 22:00:08 eldy Exp --- =================================================================== - - -create table llx_document -( - rowid SERIAL PRIMARY KEY, - "name" varchar(255) NOT NULL, - "file_name" varchar(255) NOT NULL, - "file_extension" varchar(5) NOT NULL, - "date_generation" timestamp NULL, - "fk_owner" integer NULL, - "fk_group" integer NULL, - "permissions" varchar(9) DEFAULT 'rw-rw-rw' -); diff --git a/pgsql/tables/llx_document_generator.sql b/pgsql/tables/llx_document_generator.sql deleted file mode 100644 index a25ade1fc1b..00000000000 --- a/pgsql/tables/llx_document_generator.sql +++ /dev/null @@ -1,32 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2007 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_document_generator.sql,v 1.3 2007/12/02 22:00:08 eldy Exp --- =================================================================== - - -create table llx_document_generator -( - rowid integer NOT NULL PRIMARY KEY, - "name" varchar(255) NOT NULL, - "classfile" varchar(255) NOT NULL, - "class" varchar(255) NOT NULL -); diff --git a/pgsql/tables/llx_document_model.key.sql b/pgsql/tables/llx_document_model.key.sql deleted file mode 100644 index c446d55897c..00000000000 --- a/pgsql/tables/llx_document_model.key.sql +++ /dev/null @@ -1,26 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2007 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_document_model.key.sql,v 1.2 2007/12/02 22:00:08 eldy Exp --- =================================================================== - - -ALTER TABLE llx_document_model ADD UNIQUE uk_document_model (nom,type); diff --git a/pgsql/tables/llx_document_model.sql b/pgsql/tables/llx_document_model.sql deleted file mode 100644 index df0dc1b2a8c..00000000000 --- a/pgsql/tables/llx_document_model.sql +++ /dev/null @@ -1,35 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2001-2003 Rodolphe Quiedeville --- Copyright (C) 2006 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_document_model.sql,v 1.7 2007/12/02 22:00:08 eldy Exp --- --- Liste des modeles de document disponibles --- =================================================================== - -create table llx_document_model -( - rowid SERIAL PRIMARY KEY, - "nom" varchar(50), - "type" varchar(20) NOT NULL, - "libelle" varchar(255), - "description" text -); \ No newline at end of file diff --git a/pgsql/tables/llx_dolibarr_modules.sql b/pgsql/tables/llx_dolibarr_modules.sql deleted file mode 100644 index 206c4cb8e8d..00000000000 --- a/pgsql/tables/llx_dolibarr_modules.sql +++ /dev/null @@ -1,34 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_dolibarr_modules.sql,v 1.3 2007/12/02 22:00:08 eldy Exp --- ======================================================================== - - -create table llx_dolibarr_modules -( - numero integer PRIMARY KEY, - "active" smallint DEFAULT 0 NOT NULL, - "active_date" timestamp NOT NULL, - "active_version" varchar(25) NOT NULL -); - - diff --git a/pgsql/tables/llx_domain.sql b/pgsql/tables/llx_domain.sql deleted file mode 100644 index 36d6e0146b5..00000000000 --- a/pgsql/tables/llx_domain.sql +++ /dev/null @@ -1,32 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2001-2002 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_domain.sql,v 1.4 2007/12/02 22:00:09 eldy Exp --- =================================================================== - -create table llx_domain -( - rowid SERIAL PRIMARY KEY, - "datec" timestamp, - "label" varchar(255), - "note" text -); - diff --git a/pgsql/tables/llx_don.sql b/pgsql/tables/llx_don.sql deleted file mode 100644 index 675740613af..00000000000 --- a/pgsql/tables/llx_don.sql +++ /dev/null @@ -1,48 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2001-2002 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_don.sql,v 1.11 2007/12/02 22:00:09 eldy Exp --- =================================================================== - - -create table llx_don -( - rowid SERIAL PRIMARY KEY, - "tms" timestamp, - "fk_statut" smallint NOT NULL DEFAULT 0,-- etat du don promesse/valid - "datec" timestamp, -- date de création de l'enregistrement - "datedon" timestamp, -- date du don/promesse - "amount" real DEFAULT 0, - "fk_paiement" integer, - "prenom" varchar(50), - "nom" varchar(50), - "societe" varchar(50), - "adresse" text, - "cp" varchar(30), - "ville" varchar(50), - "pays" varchar(50), - "email" varchar(255), - "public" smallint DEFAULT 1 NOT NULL, -- le don est-il public (0,1) - "fk_don_projet" integer NOT NULL, -- projet auquel est fait le don - "fk_user_author" integer NOT NULL, - "fk_user_valid" integer NOT NULL, - "note" text -); diff --git a/pgsql/tables/llx_don_projet.sql b/pgsql/tables/llx_don_projet.sql deleted file mode 100644 index 708827c7ac0..00000000000 --- a/pgsql/tables/llx_don_projet.sql +++ /dev/null @@ -1,33 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2001-2002 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_don_projet.sql,v 1.5 2007/12/02 22:00:09 eldy Exp --- =================================================================== - -create table llx_don_projet -( - rowid SERIAL PRIMARY KEY, - "tms" timestamp, - "datec" timestamp, - "libelle" varchar(255), - "fk_user_author" integer NOT NULL, - "note" text -); diff --git a/pgsql/tables/llx_droitpret_rapport.sql b/pgsql/tables/llx_droitpret_rapport.sql deleted file mode 100644 index bd4c14298ca..00000000000 --- a/pgsql/tables/llx_droitpret_rapport.sql +++ /dev/null @@ -1,35 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2007 Patrick Raguin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_droitpret_rapport.sql,v 1.5 2007/12/03 00:13:56 eldy Exp --- ======================================================================== - - -CREATE TABLE `llx_droitpret_rapport` ( - `rowid` int(11) NOT NULL auto_increment, - `date_envoie` datetime NOT NULL, - `format` varchar(10) NOT NULL, - `date_debut` datetime NOT NULL, - `date_fin` datetime NOT NULL, - `fichier` varchar(255) NOT NULL, - `nbfact` int(11) NOT NULL, - PRIMARY KEY (`rowid`) -) type=innodb; diff --git a/pgsql/tables/llx_ecm_directories.sql b/pgsql/tables/llx_ecm_directories.sql deleted file mode 100644 index 83ff2dddceb..00000000000 --- a/pgsql/tables/llx_ecm_directories.sql +++ /dev/null @@ -1,38 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2008 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_ecm_directories.sql,v 1.2 2008/04/29 23:49:00 eldy Exp --- =================================================================== - --- drop table llx_ecm_directories; - -create table llx_ecm_directories -( - rowid SERIAL PRIMARY KEY, - "label" varchar(32) NOT NULL, - "fk_parent" integer, - "description" varchar(255) NOT NULL, - "cachenbofdoc" integer NOT NULL DEFAULT 0, - "date_c" timestamp, - "date_m" timestamp, - "fk_user_c" integer, - "fk_user_m" integer -); diff --git a/pgsql/tables/llx_ecm_documents.sql b/pgsql/tables/llx_ecm_documents.sql deleted file mode 100644 index 4fb06b69e24..00000000000 --- a/pgsql/tables/llx_ecm_documents.sql +++ /dev/null @@ -1,45 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2008 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_ecm_documents.sql,v 1.1 2008/02/24 23:29:34 eldy Exp --- =================================================================== - --- drop table llx_ecm_document; - -create table llx_ecm_document -( - rowid SERIAL PRIMARY KEY, - "ref" varchar(16) NOT NULL, - "filename" varchar(255) NOT NULL, - "filesize" integer NOT NULL, - "filemime" varchar(32) NOT NULL, - "fullpath_dol" varchar(255) NOT NULL, - "fullpath_orig" varchar(255) NOT NULL, - "description" text, - "manualkeyword" text, - "fk_create" integer NOT NULL, - "fk_update" integer, - "date_c" timestamp, - "date_u" timestamp, - "fk_directory" integer, - "fk_status" smallint DEFAULT 0, - "private" smallint DEFAULT 0 -); diff --git a/pgsql/tables/llx_element_contact.key.sql b/pgsql/tables/llx_element_contact.key.sql deleted file mode 100644 index d8fe1602f0a..00000000000 --- a/pgsql/tables/llx_element_contact.key.sql +++ /dev/null @@ -1,37 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2005 patrick Rouillon --- Copyright (C) 2007 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_element_contact.key.sql,v 1.6 2007/12/02 21:58:49 eldy Exp --- ============================================================================ - - -ALTER TABLE llx_element_contact - ADD UNIQUE INDEX idx_element_contact_idx1 (element_id, fk_c_type_contact, fk_socpeople); - -ALTER TABLE llx_element_contact - ADD CONSTRAINT fk_element_contact_fk_c_type_contact - FOREIGN KEY (fk_c_type_contact) REFERENCES llx_c_type_contact(rowid); - - -ALTER TABLE llx_element_contact ADD INDEX idx_element_contact_fk_socpeople (fk_socpeople); --- Pas de contraite sur fk_socpeople car point sur llx_socpeople mais aussi llx_user - \ No newline at end of file diff --git a/pgsql/tables/llx_element_contact.sql b/pgsql/tables/llx_element_contact.sql deleted file mode 100644 index f42299545f5..00000000000 --- a/pgsql/tables/llx_element_contact.sql +++ /dev/null @@ -1,39 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2005 patrick Rouillon --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_element_contact.sql,v 1.3 2007/12/02 21:58:49 eldy Exp --- ============================================================================ --- Association de personnes/societes avec un element de la base (contrat, projet, propal). --- Permet de definir plusieur type d'intervenant sur un element. --- i.e. commercial, adresse de facturation, prestataire... --- ============================================================================ - -create table llx_element_contact -( - rowid SERIAL PRIMARY KEY, - "datecreate" timestamp NULL, -- date de creation de l'enregistrement - "statut" smallint DEFAULT 5, -- 5 inactif, 4 actif - - "element_id" int NOT NULL, -- la reference de l'element. - "fk_c_type_contact" int NOT NULL, -- nature du contact. - "fk_socpeople" integer NOT NULL -); - diff --git a/pgsql/tables/llx_element_element.key.sql b/pgsql/tables/llx_element_element.key.sql deleted file mode 100644 index bf431cecf4c..00000000000 --- a/pgsql/tables/llx_element_element.key.sql +++ /dev/null @@ -1,33 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2008 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_element_element.key.sql,v 1.1 2008/02/11 14:38:46 eldy Exp --- ============================================================================ - - -ALTER TABLE llx_element_element - ADD UNIQUE INDEX idx_element_element_idx1 (sourceid, sourcetype, targetid, targettype); - - -ALTER TABLE llx_element_element ADD INDEX idx_element_element_targetid (targetid); - --- Pas de contraite sur sourceid et targetid car pointe sur differentes tables - \ No newline at end of file diff --git a/pgsql/tables/llx_element_element.sql b/pgsql/tables/llx_element_element.sql deleted file mode 100644 index 821904c5bc9..00000000000 --- a/pgsql/tables/llx_element_element.sql +++ /dev/null @@ -1,36 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2008 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_element_element.sql,v 1.2 2008/06/05 16:43:20 eldy Exp --- ============================================================================ --- Table used for relations between elements of different types: --- invoice-propal, propal-order, etc... --- ============================================================================ - -create table llx_element_element -( - rowid SERIAL PRIMARY KEY, - "sourceid" integer NOT NULL, - "sourcetype" varchar(16) NOT NULL, - "targetid" integer NOT NULL, - "targettype" varchar(16) NOT NULL -); - diff --git a/pgsql/tables/llx_energie_compteur.sql b/pgsql/tables/llx_energie_compteur.sql deleted file mode 100644 index de0cd479255..00000000000 --- a/pgsql/tables/llx_energie_compteur.sql +++ /dev/null @@ -1,34 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_energie_compteur.sql,v 1.2 2007/12/02 21:58:49 eldy Exp --- =================================================================== - - -create table llx_energie_compteur -( - rowid SERIAL PRIMARY KEY, - "libelle" varchar(50), - "fk_energie" integer NOT NULL, - "datec" timestamp, - "fk_user_author" integer NOT NULL, - "note" text -); diff --git a/pgsql/tables/llx_energie_compteur_groupe.sql b/pgsql/tables/llx_energie_compteur_groupe.sql deleted file mode 100644 index 0e980e6f839..00000000000 --- a/pgsql/tables/llx_energie_compteur_groupe.sql +++ /dev/null @@ -1,29 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_energie_compteur_groupe.sql,v 1.2 2007/12/02 21:58:49 eldy Exp --- =================================================================== - -create table llx_energie_compteur_groupe -( - "fk_energie_compteur" integer NOT NULL, - "fk_energie_groupe" integer NOT NULL -); diff --git a/pgsql/tables/llx_energie_compteur_releve.sql b/pgsql/tables/llx_energie_compteur_releve.sql deleted file mode 100644 index 4e89f5abc41..00000000000 --- a/pgsql/tables/llx_energie_compteur_releve.sql +++ /dev/null @@ -1,35 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_energie_compteur_releve.sql,v 1.2 2007/12/02 21:58:49 eldy Exp --- =================================================================== - - -create table llx_energie_compteur_releve -( - rowid SERIAL PRIMARY KEY, - "fk_compteur" integer NOT NULL, - "date_releve" timestamp, - "valeur" real, - "datec" timestamp, - "fk_user_author" integer NOT NULL, - "note" text -); diff --git a/pgsql/tables/llx_energie_groupe.sql b/pgsql/tables/llx_energie_groupe.sql deleted file mode 100644 index f1b1caa684e..00000000000 --- a/pgsql/tables/llx_energie_groupe.sql +++ /dev/null @@ -1,33 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_energie_groupe.sql,v 1.2 2007/12/02 21:58:49 eldy Exp --- =================================================================== - - -create table llx_energie_groupe -( - rowid SERIAL PRIMARY KEY, - "libelle" varchar(100), - "datec" timestamp, - "fk_user_author" integer NOT NULL, - "note" text -); diff --git a/pgsql/tables/llx_entrepot.sql b/pgsql/tables/llx_entrepot.sql deleted file mode 100644 index dfa0fae4540..00000000000 --- a/pgsql/tables/llx_entrepot.sql +++ /dev/null @@ -1,42 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2003-2006 Rodolphe Quiedeville --- Copyright (C) 2004 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_entrepot.sql,v 1.11 2007/12/02 21:58:49 eldy Exp --- ============================================================================ - -create table llx_entrepot -( - rowid SERIAL PRIMARY KEY, - "datec" timestamp, - "tms" timestamp, - "label" varchar(255) UNIQUE NOT NULL, - "description" text, - "lieu" varchar(64), -- résumé lieu situation - "address" varchar(255), - "cp" varchar(10), - "ville" varchar(50), - "fk_pays" integer DEFAULT 0, - "statut" smallint DEFAULT 1, -- 1 ouvert, 0 fermé - "valo_pmp" float(12,4), -- valoristaion du stock en PMP - "fk_user_author" integer -); - diff --git a/pgsql/tables/llx_entrepot_valorisation.sql b/pgsql/tables/llx_entrepot_valorisation.sql deleted file mode 100644 index b86228ce1e1..00000000000 --- a/pgsql/tables/llx_entrepot_valorisation.sql +++ /dev/null @@ -1,33 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2006 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_entrepot_valorisation.sql,v 1.4 2008/07/02 22:37:52 eldy Exp --- ============================================================================ - -create table llx_entrepot_valorisation -( - rowid SERIAL PRIMARY KEY, - "tms" timestamp, -- date technique mise à jour automatiquement - "date_calcul" date, -- date auquel a ete calcule la valeur - "fk_entrepot" integer NOT NULL, - "valo_pmp" float(12,4) -- valoristaion du stock en PMP -); - diff --git a/pgsql/tables/llx_events.key.sql b/pgsql/tables/llx_events.key.sql deleted file mode 100644 index 5c0e457deff..00000000000 --- a/pgsql/tables/llx_events.key.sql +++ /dev/null @@ -1,26 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2008 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_events.key.sql,v 1.1 2008/02/11 15:01:16 eldy Exp --- =========================================================================== - - -ALTER TABLE llx_events ADD INDEX idx_events_dateevent (dateevent); diff --git a/pgsql/tables/llx_events.sql b/pgsql/tables/llx_events.sql deleted file mode 100644 index a4ed8698b52..00000000000 --- a/pgsql/tables/llx_events.sql +++ /dev/null @@ -1,43 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2008 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_events.sql,v 1.5 2008/04/09 21:38:40 eldy Exp --- ======================================================================== --- This table logs all dolibarr security events --- Content of this table is not managed by users but by Dolibarr --- trigger interface_all_LogEvent. --- ======================================================================== - -create table llx_events -( - rowid SERIAL PRIMARY KEY, - "tms" timestamp, -- date creation/modification - "type" varchar(32) NOT NULL, -- action type - "dateevent" timestamp, -- date event - "fk_user" integer, -- id user - "description" varchar(250) NOT NULL, -- full description of action - "ip" varchar(32) NOT NULL, -- ip - "fk_object" integer -- id of related object -); - - - - diff --git a/pgsql/tables/llx_expedition.key.sql b/pgsql/tables/llx_expedition.key.sql deleted file mode 100644 index 440dd15a2b8..00000000000 --- a/pgsql/tables/llx_expedition.key.sql +++ /dev/null @@ -1,39 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2005 Laurent Destailleur --- Copyright (C) 2008 Regis Houssin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_expedition.key.sql,v 1.2 2008/01/21 19:17:56 hregis Exp --- =================================================================== - - -ALTER TABLE llx_expedition ADD INDEX idx_expedition_fk_soc (fk_soc); -ALTER TABLE llx_expedition ADD INDEX idx_expedition_fk_user_author (fk_user_author); -ALTER TABLE llx_expedition ADD INDEX idx_expedition_fk_user_valid (fk_user_valid); -ALTER TABLE llx_expedition ADD INDEX idx_expedition_fk_adresse_livraison (fk_adresse_livraison); -ALTER TABLE llx_expedition ADD INDEX idx_expedition_fk_expedition_methode (fk_expedition_methode); - -ALTER TABLE llx_expedition ADD CONSTRAINT fk_expedition_fk_soc FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid); -ALTER TABLE llx_expedition ADD CONSTRAINT fk_expedition_fk_user_author FOREIGN KEY (fk_user_author) REFERENCES llx_user (rowid); -ALTER TABLE llx_expedition ADD CONSTRAINT fk_expedition_fk_user_valid FOREIGN KEY (fk_user_valid) REFERENCES llx_user (rowid); -ALTER TABLE llx_expedition ADD CONSTRAINT fk_expedition_fk_adresse_livraison FOREIGN KEY (fk_adresse_livraison) REFERENCES llx_societe_adresse_livraison (rowid); -ALTER TABLE llx_expedition ADD CONSTRAINT fk_expedition_fk_expedition_methode FOREIGN KEY (fk_expedition_methode) REFERENCES llx_expedition_methode (rowid); - -ALTER TABLE llx_expedition ADD UNIQUE INDEX idx_expedition_uk_ref (ref); \ No newline at end of file diff --git a/pgsql/tables/llx_expedition.sql b/pgsql/tables/llx_expedition.sql deleted file mode 100644 index ada7f7b7bbf..00000000000 --- a/pgsql/tables/llx_expedition.sql +++ /dev/null @@ -1,42 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- Copyright (C) 2008 Regis Houssin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_expedition.sql,v 1.6 2008/01/21 19:17:56 hregis Exp --- =================================================================== - -create table llx_expedition -( - rowid SERIAL PRIMARY KEY, - "tms" timestamp, - "ref" varchar(30) NOT NULL, - "fk_soc" integer NOT NULL, - "date_creation" timestamp, -- date de creation - "fk_user_author" integer, -- createur - "date_valid" timestamp, -- date de validation - "fk_user_valid" integer, -- valideur - "date_expedition" date, -- date de l'expedition - "fk_adresse_livraison" integer DEFAULT NULL, -- adresse de livraison - "fk_expedition_methode" integer, - "fk_statut" smallint DEFAULT 0, - "note" text, - "model_pdf" varchar(50) -); diff --git a/pgsql/tables/llx_expedition_methode.sql b/pgsql/tables/llx_expedition_methode.sql deleted file mode 100644 index 58bf403afd3..00000000000 --- a/pgsql/tables/llx_expedition_methode.sql +++ /dev/null @@ -1,33 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_expedition_methode.sql,v 1.6 2007/12/02 21:58:49 eldy Exp --- =================================================================== - -create table llx_expedition_methode -( - rowid integer PRIMARY KEY, - "tms" timestamp, - "code" varchar(30) NOT NULL, - "libelle" varchar(50) NOT NULL, - "description" text, - "statut" smallint DEFAULT 0 -); diff --git a/pgsql/tables/llx_expeditiondet.key.sql b/pgsql/tables/llx_expeditiondet.key.sql deleted file mode 100644 index 9fc4f29086a..00000000000 --- a/pgsql/tables/llx_expeditiondet.key.sql +++ /dev/null @@ -1,28 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2005 Laurent Destailleur --- Copyright (C) 2008 Regis Houssin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_expeditiondet.key.sql,v 1.1 2008/01/17 10:28:28 hregis Exp --- =================================================================== - - -ALTER TABLE llx_expeditiondet ADD INDEX idx_expeditiondet_fk_expedition (fk_expedition); -ALTER TABLE llx_expeditiondet ADD CONSTRAINT fk_expeditiondet_fk_expedition FOREIGN KEY (fk_expedition) REFERENCES llx_expedition (rowid); diff --git a/pgsql/tables/llx_expeditiondet.sql b/pgsql/tables/llx_expeditiondet.sql deleted file mode 100644 index 0af3ab9d77b..00000000000 --- a/pgsql/tables/llx_expeditiondet.sql +++ /dev/null @@ -1,34 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- Copyright (C) 2008 Regis Houssin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_expeditiondet.sql,v 1.5 2008/01/17 10:28:28 hregis Exp --- =================================================================== - -create table llx_expeditiondet -( - rowid SERIAL PRIMARY KEY, - "fk_expedition" integer NOT NULL, - "fk_origin_line" integer, -- Correspondance de la ligne avec le document d'origine (propal, commande) - "fk_entrepot" integer, -- Entrepot de depart du produit - "qty" real, -- Quantity - "rang" integer DEFAULT 0 -); diff --git a/pgsql/tables/llx_export_compta.sql b/pgsql/tables/llx_export_compta.sql deleted file mode 100644 index d93a24d582c..00000000000 --- a/pgsql/tables/llx_export_compta.sql +++ /dev/null @@ -1,34 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2004 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_export_compta.sql,v 1.3 2007/12/02 21:58:49 eldy Exp --- =================================================================== - - - -create table llx_export_compta -( - rowid SERIAL PRIMARY KEY, - "ref" varchar(12) NOT NULL, - "date_export" timestamp, -- date de creation - "fk_user" integer NOT NULL, - "note" text -); diff --git a/pgsql/tables/llx_export_model.key.sql b/pgsql/tables/llx_export_model.key.sql deleted file mode 100644 index dabf59964ab..00000000000 --- a/pgsql/tables/llx_export_model.key.sql +++ /dev/null @@ -1,27 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2007 Laurent Destailleur --- Copyright (C) 2007 Regis Houssin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_export_model.key.sql,v 1.3 2007/12/02 21:58:49 eldy Exp --- =================================================================== - - -ALTER TABLE llx_export_model ADD UNIQUE uk_export_model (label); \ No newline at end of file diff --git a/pgsql/tables/llx_export_model.sql b/pgsql/tables/llx_export_model.sql deleted file mode 100644 index 1c58ea4f133..00000000000 --- a/pgsql/tables/llx_export_model.sql +++ /dev/null @@ -1,35 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2001-2003 Rodolphe Quiedeville --- Copyright (C) 2007 Regis Houssin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_export_model.sql,v 1.4 2007/12/02 21:58:49 eldy Exp --- --- Liste des modeles de document disponibles --- =================================================================== - -create table llx_export_model -( - rowid SERIAL PRIMARY KEY, - "fk_user" integer DEFAULT 0 NOT NULL, - "label" varchar(50) NOT NULL, - "type" varchar(20) NOT NULL, - "field" text NOT NULL -); \ No newline at end of file diff --git a/pgsql/tables/llx_fa_pr.sql b/pgsql/tables/llx_fa_pr.sql deleted file mode 100644 index 505eb68a125..00000000000 --- a/pgsql/tables/llx_fa_pr.sql +++ /dev/null @@ -1,31 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2001-2002 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_fa_pr.sql,v 1.6 2007/12/02 21:37:38 eldy Exp --- =================================================================== - - -create table llx_fa_pr -( - rowid SERIAL PRIMARY KEY, - "fk_facture" integer, - "fk_propal" integer -); diff --git a/pgsql/tables/llx_facture.key.sql b/pgsql/tables/llx_facture.key.sql deleted file mode 100644 index c1317786f48..00000000000 --- a/pgsql/tables/llx_facture.key.sql +++ /dev/null @@ -1,39 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2002-2004 Rodolphe Quiedeville --- Copyright (C) 2004 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_facture.key.sql,v 1.10 2007/12/02 21:37:38 eldy Exp --- ============================================================================ - - -ALTER TABLE llx_facture ADD INDEX idx_facture_fk_soc (fk_soc); -ALTER TABLE llx_facture ADD INDEX idx_facture_fk_user_author (fk_user_author); -ALTER TABLE llx_facture ADD INDEX idx_facture_fk_user_valid (fk_user_valid); -ALTER TABLE llx_facture ADD INDEX idx_facture_fk_facture_source (fk_facture_source); -ALTER TABLE llx_facture ADD INDEX idx_facture_fk_projet (fk_projet); - -ALTER TABLE llx_facture ADD CONSTRAINT fk_facture_fk_soc FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid); -ALTER TABLE llx_facture ADD CONSTRAINT fk_facture_fk_user_author FOREIGN KEY (fk_user_author) REFERENCES llx_user (rowid); -ALTER TABLE llx_facture ADD CONSTRAINT fk_facture_fk_user_valid FOREIGN KEY (fk_user_valid) REFERENCES llx_user (rowid); -ALTER TABLE llx_facture ADD CONSTRAINT fk_facture_fk_facture_source FOREIGN KEY (fk_facture_source) REFERENCES llx_facture (rowid); -ALTER TABLE llx_facture ADD CONSTRAINT fk_facture_fk_projet FOREIGN KEY (fk_projet) REFERENCES llx_projet (rowid); - -ALTER TABLE llx_facture ADD UNIQUE INDEX idx_facture_uk_facnumber (facnumber); diff --git a/pgsql/tables/llx_facture.sql b/pgsql/tables/llx_facture.sql deleted file mode 100644 index 7879f82d650..00000000000 --- a/pgsql/tables/llx_facture.sql +++ /dev/null @@ -1,66 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =========================================================================== --- Copyright (C) 2001-2005 Rodolphe Quiedeville --- Copyright (C) 2006 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_facture.sql,v 1.35 2007/12/02 21:37:38 eldy Exp --- =========================================================================== - - - - - - - - - -create table llx_facture -( - rowid SERIAL PRIMARY KEY, - "facnumber" varchar(30) NOT NULL, - "type" smallint DEFAULT 0 NOT NULL, - "ref_client" varchar(30), - "increment" varchar(10), - "fk_soc" integer NOT NULL, - "datec" timestamp, -- date de creation de la facture - "datef" date, -- date de la facture - "date_valid" date, -- date de validation - "paye" smallint DEFAULT 0 NOT NULL, - "amount" real DEFAULT 0 NOT NULL, - "remise_percent" real DEFAULT 0, -- remise relative - "remise_absolue" real DEFAULT 0, -- remise absolue - "remise" real DEFAULT 0, -- remise totale calculee - "close_code" varchar(16), -- Code motif cloture sans paiement complet - "close_note" varchar(128), -- Commentaire cloture sans paiement complet - "tva" real DEFAULT 0, -- montant tva apres remise totale - "total" real DEFAULT 0, -- montant total ht apres remise totale - "total_ttc" real DEFAULT 0, -- montant total ttc apres remise totale - "fk_statut" smallint DEFAULT 0 NOT NULL, - "fk_user_author" integer, -- createur de la facture - "fk_user_valid" integer, -- valideur de la facture - "fk_facture_source" integer, -- facture origine si facture avoir - "fk_projet" integer, -- projet auquel est associée la facture - "fk_cond_reglement" integer DEFAULT 1 NOT NULL, -- condition de reglement (30 jours, fin de mois ...) - "fk_mode_reglement" integer, -- mode de reglement (Virement, Prélèvement) - "date_lim_reglement" date, -- date limite de reglement - "note" text, - "note_public" text, - "model_pdf" varchar(50) -); diff --git a/pgsql/tables/llx_facture_fourn.key.sql b/pgsql/tables/llx_facture_fourn.key.sql deleted file mode 100644 index 895595cd1cf..00000000000 --- a/pgsql/tables/llx_facture_fourn.key.sql +++ /dev/null @@ -1,38 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_facture_fourn.key.sql,v 1.6 2007/12/02 21:37:38 eldy Exp --- ============================================================================ - - -ALTER TABLE llx_facture_fourn ADD UNIQUE INDEX uk_facture_fourn_ref (facnumber, fk_soc); - -ALTER TABLE llx_facture_fourn ADD INDEX idx_facture_fourn_date_lim_reglement (date_lim_reglement); - -ALTER TABLE llx_facture_fourn ADD INDEX idx_facture_fourn_fk_soc (fk_soc); -ALTER TABLE llx_facture_fourn ADD INDEX idx_facture_fourn_fk_user_author (fk_user_author); -ALTER TABLE llx_facture_fourn ADD INDEX idx_facture_fourn_fk_user_valid (fk_user_valid); -ALTER TABLE llx_facture_fourn ADD INDEX idx_facture_fourn_fk_projet (fk_projet); - -ALTER TABLE llx_facture_fourn ADD CONSTRAINT fk_facture_fourn_fk_soc FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid); -ALTER TABLE llx_facture_fourn ADD CONSTRAINT fk_facture_fourn_fk_user_author FOREIGN KEY (fk_user_author) REFERENCES llx_user (rowid); -ALTER TABLE llx_facture_fourn ADD CONSTRAINT fk_facture_fourn_fk_user_valid FOREIGN KEY (fk_user_valid) REFERENCES llx_user (rowid); -ALTER TABLE llx_facture_fourn ADD CONSTRAINT fk_facture_fourn_fk_projet FOREIGN KEY (fk_projet) REFERENCES llx_projet (rowid); diff --git a/pgsql/tables/llx_facture_fourn.sql b/pgsql/tables/llx_facture_fourn.sql deleted file mode 100644 index 9179b3ab310..00000000000 --- a/pgsql/tables/llx_facture_fourn.sql +++ /dev/null @@ -1,56 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =========================================================================== --- Copyright (C) 2001-2003 Rodolphe Quiedeville --- Copyright (C) 2007 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_facture_fourn.sql,v 1.15 2007/12/02 21:37:38 eldy Exp --- =========================================================================== - - - - - - -create table llx_facture_fourn -( - rowid SERIAL PRIMARY KEY, - "facnumber" varchar(50) NOT NULL, - "type" smallint DEFAULT 0 NOT NULL, - "fk_soc" integer NOT NULL, - "datec" timestamp, -- date de creation de la facture - "datef" date, -- date de la facture - "libelle" varchar(255), - "paye" smallint DEFAULT 0 NOT NULL, - "amount" real(24,8) DEFAULT 0 NOT NULL, - "remise" real(24,8) DEFAULT 0, - "tva" real(24,8) DEFAULT 0, - "total" real(24,8) DEFAULT 0, - "total_ht" real(24,8) DEFAULT 0, - "total_tva" real(24,8) DEFAULT 0, - "total_ttc" real(24,8) DEFAULT 0, - "fk_statut" smallint DEFAULT 0 NOT NULL, - "fk_user_author" integer, -- createur de la facture - "fk_user_valid" integer, -- valideur de la facture - "fk_projet" integer, -- projet auquel est associée la facture - "fk_cond_reglement" integer DEFAULT 1 NOT NULL, -- condition de reglement (30 jours, fin de mois ...) - "date_lim_reglement" date, -- date limite de reglement - "note" text, - "note_public" text -); diff --git a/pgsql/tables/llx_facture_fourn_det.key.sql b/pgsql/tables/llx_facture_fourn_det.key.sql deleted file mode 100644 index d8363b11d56..00000000000 --- a/pgsql/tables/llx_facture_fourn_det.key.sql +++ /dev/null @@ -1,30 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_facture_fourn_det.key.sql,v 1.3 2007/12/02 21:37:38 eldy Exp --- =================================================================== - - --- Supprimme orphelins pour permettre montée de la clé --- V4 DELETE llx_facture_fourn_det FROM llx_facture_fourn_det LEFT JOIN llx_facture_fourn ON llx_facture_fourn_det.fk_facture_fourn = llx_facture_fourn.rowid WHERE llx_facture_fourn.rowid IS NULL; - -ALTER TABLE llx_facture_fourn_det ADD INDEX idx_facture_fourn_det_fk_facture (fk_facture_fourn); -ALTER TABLE llx_facture_fourn_det ADD CONSTRAINT fk_facture_fourn_det_fk_facture FOREIGN KEY (fk_facture_fourn) REFERENCES llx_facture_fourn (rowid); diff --git a/pgsql/tables/llx_facture_fourn_det.sql b/pgsql/tables/llx_facture_fourn_det.sql deleted file mode 100644 index 2d3c1eaf6fb..00000000000 --- a/pgsql/tables/llx_facture_fourn_det.sql +++ /dev/null @@ -1,39 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_facture_fourn_det.sql,v 1.9 2008/02/17 22:49:20 eldy Exp --- =================================================================== - -create table llx_facture_fourn_det -( - rowid SERIAL PRIMARY KEY, - "fk_facture_fourn" integer NOT NULL, - "fk_product" integer NULL, - "description" text, - "pu_ht" real(24,8), - "pu_ttc" real(24,8), - "qty" smallint DEFAULT 1, - "tva_taux" real(24,8) DEFAULT 0, - "total_ht" real(24,8) DEFAULT 0, - "tva" real(24,8) DEFAULT 0, - "total_ttc" real(24,8) DEFAULT 0, - "product_type" integer DEFAULT 0 -); diff --git a/pgsql/tables/llx_facture_rec.key.sql b/pgsql/tables/llx_facture_rec.key.sql deleted file mode 100644 index 33c3c459ff1..00000000000 --- a/pgsql/tables/llx_facture_rec.key.sql +++ /dev/null @@ -1,34 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2002-2004 Rodolphe Quiedeville --- Copyright (C) 2004-2006 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_facture_rec.key.sql,v 1.2 2007/12/02 21:37:39 eldy Exp --- ============================================================================ - - -ALTER TABLE llx_facture_rec ADD INDEX idx_facture_rec_fk_soc (fk_soc); -ALTER TABLE llx_facture_rec ADD INDEX idx_facture_rec_fk_user_author (fk_user_author); -ALTER TABLE llx_facture_rec ADD INDEX idx_facture_rec_fk_projet (fk_projet); - -ALTER TABLE llx_facture_rec ADD CONSTRAINT fk_facture_rec_fk_user_author FOREIGN KEY (fk_user_author) REFERENCES llx_user (rowid); -ALTER TABLE llx_facture_rec ADD CONSTRAINT fk_facture_rec_fk_projet FOREIGN KEY (fk_projet) REFERENCES llx_projet (rowid); - -ALTER TABLE llx_facture_rec ADD UNIQUE INDEX idx_facture_rec_uk_titre (titre); diff --git a/pgsql/tables/llx_facture_rec.sql b/pgsql/tables/llx_facture_rec.sql deleted file mode 100644 index 5c8e208f480..00000000000 --- a/pgsql/tables/llx_facture_rec.sql +++ /dev/null @@ -1,55 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =========================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- Copyright (C) 2006 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_facture_rec.sql,v 1.8 2007/12/02 21:37:39 eldy Exp --- =========================================================================== - - - - - - -create table llx_facture_rec -( - rowid SERIAL PRIMARY KEY, - "titre" varchar(50) NOT NULL, - "fk_soc" integer NOT NULL, - "datec" timestamp, -- date de creation - "amount" real DEFAULT 0 NOT NULL, - "remise" real DEFAULT 0, - "remise_percent" real DEFAULT 0, - "remise_absolue" real DEFAULT 0, - "tva" real DEFAULT 0, - "total" real DEFAULT 0, - "total_ttc" real DEFAULT 0, - "fk_user_author" integer, -- createur - "fk_projet" integer, -- projet auquel est associé la facture - "fk_cond_reglement" integer DEFAULT 0, -- condition de reglement - "fk_mode_reglement" integer DEFAULT 0, -- mode de reglement (Virement, Prélèvement) - "date_lim_reglement" date, -- date limite de reglement - "note" text, - "note_public" text, - "frequency" varchar(2) DEFAULT NULL, - "last_gen" varchar(7) DEFAULT NULL -); - -CREATE INDEX idx_facture_rec_fksoc ON llx_facture_rec (fk_soc); diff --git a/pgsql/tables/llx_facture_stats.sql b/pgsql/tables/llx_facture_stats.sql deleted file mode 100644 index e69c4be15fe..00000000000 --- a/pgsql/tables/llx_facture_stats.sql +++ /dev/null @@ -1,32 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2006 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_facture_stats.sql,v 1.3 2007/12/02 21:37:39 eldy Exp --- =================================================================== - - -create table llx_facture_stats -( - "date_full" timestamp, - "date_day" date, - "data" varchar(50), - "value" real -); diff --git a/pgsql/tables/llx_facturedet.key.sql b/pgsql/tables/llx_facturedet.key.sql deleted file mode 100644 index 8db3f4d6e31..00000000000 --- a/pgsql/tables/llx_facturedet.key.sql +++ /dev/null @@ -1,30 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_facturedet.key.sql,v 1.6 2007/12/02 21:37:39 eldy Exp --- =================================================================== - - --- Supprimme orhpelins pour permettre montée de la clé --- V4 DELETE llx_facturedet FROM llx_facturedet LEFT JOIN llx_facture ON llx_facturedet.fk_facture = llx_facture.rowid WHERE llx_facture.rowid IS NULL; - -ALTER TABLE llx_facturedet ADD INDEX idx_facturedet_fk_facture (fk_facture); -ALTER TABLE llx_facturedet ADD CONSTRAINT fk_facturedet_fk_facture FOREIGN KEY (fk_facture) REFERENCES llx_facture (rowid); diff --git a/pgsql/tables/llx_facturedet.sql b/pgsql/tables/llx_facturedet.sql deleted file mode 100644 index 349793dcc49..00000000000 --- a/pgsql/tables/llx_facturedet.sql +++ /dev/null @@ -1,58 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2001-2005 Rodolphe Quiedeville --- Copyright (C) 2004-2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_facturedet.sql,v 1.25 2008/02/17 22:49:20 eldy Exp --- =================================================================== - - -create table llx_facturedet -( - rowid SERIAL PRIMARY KEY, - "fk_facture" integer NOT NULL, - "fk_product" integer NULL, -- Doit pouvoir etre nul pour ligne detail sans produits - "description" text, - "tva_taux" real, -- Taux tva produit/service (exemple 19.6) - "qty" real, -- Quantité (exemple 2) - "remise_percent" real DEFAULT 0, -- % de la remise ligne (exemple 20%) - "remise" real DEFAULT 0, -- Montant calculé de la remise % sur PU HT (exemple 20) - "fk_remise_except" integer NULL, -- Lien vers table des remises fixes - "subprice" real, -- P.U. HT (exemple 100) - "price" real, -- P.U. HT apres remise % de ligne - "total_ht" real, -- Total HT de la ligne toute quantité et incluant remise ligne et globale - "total_tva" real, -- Total TVA de la ligne toute quantité et incluant remise ligne et globale - "total_ttc" real, -- Total TTC de la ligne toute quantité et incluant remise ligne et globale - "product_type" integer DEFAULT 0, - "date_start" timestamp, -- date debut si service - "date_end" timestamp, -- date fin si service - "info_bits" integer DEFAULT 0, -- TVA NPR ou non - "fk_code_ventilation" integer DEFAULT 0 NOT NULL, - "fk_export_compta" integer DEFAULT 0 NOT NULL, - "special_code" int2 DEFAULT 0, -- code pour les lignes speciales - "rang" integer DEFAULT 0 -- ordre d'affichage -); - --- --- Liste des codes pour special_code --- --- 1 : frais de port --- 2 : ecotaxe --- \ No newline at end of file diff --git a/pgsql/tables/llx_facturedet_rec.sql b/pgsql/tables/llx_facturedet_rec.sql deleted file mode 100644 index 0876bcdcc65..00000000000 --- a/pgsql/tables/llx_facturedet_rec.sql +++ /dev/null @@ -1,40 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_facturedet_rec.sql,v 1.5 2007/12/02 21:37:39 eldy Exp --- =================================================================== - -create table llx_facturedet_rec -( - rowid SERIAL PRIMARY KEY, - "fk_facture" integer NOT NULL, - "fk_product" integer, - "description" text, - "tva_taux" real DEFAULT 19.6, -- taux tva - "qty" real, -- quantité - "remise_percent" real DEFAULT 0, -- pourcentage de remise - "remise" real DEFAULT 0, -- montant de la remise - "subprice" real, -- prix avant remise - "price" real, -- prix final - "total_ht" real, -- Total HT de la ligne toute quantité et incluant remise ligne et globale - "total_tva" real, -- Total TVA de la ligne toute quantité et incluant remise ligne et globale - "total_ttc" real -- Total TTC de la ligne toute quantité et incluant remise ligne et globale -); diff --git a/pgsql/tables/llx_fichinter.key.sql b/pgsql/tables/llx_fichinter.key.sql deleted file mode 100644 index 8177cf24bab..00000000000 --- a/pgsql/tables/llx_fichinter.key.sql +++ /dev/null @@ -1,27 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_fichinter.key.sql,v 1.6 2007/12/02 21:37:39 eldy Exp --- =================================================================== - - -ALTER TABLE llx_fichinter ADD INDEX idx_fichinter_fk_soc (fk_soc); -ALTER TABLE llx_fichinter ADD CONSTRAINT fk_fichinter_fk_soc FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid); diff --git a/pgsql/tables/llx_fichinter.sql b/pgsql/tables/llx_fichinter.sql deleted file mode 100644 index 699b247432b..00000000000 --- a/pgsql/tables/llx_fichinter.sql +++ /dev/null @@ -1,48 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2001-2007 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_fichinter.sql,v 1.12 2007/12/02 21:37:39 eldy Exp --- =================================================================== - - -create table llx_fichinter -( - rowid SERIAL PRIMARY KEY, - "fk_soc" integer NOT NULL, - "fk_projet" integer DEFAULT 0, -- projet auquel est rattache la fiche - "fk_contrat" integer DEFAULT 0, -- contrat auquel est rattache la fiche - "ref" varchar(30) NOT NULL, -- number - "tms" timestamp, - "datec" timestamp, -- date de creation - "date_valid" timestamp, -- date de validation - "datei" date, -- date de livraison du bon d'intervention - "fk_user_author" integer, -- createur de la fiche - "fk_user_valid" integer, -- valideur de la fiche - "fk_statut" smallint DEFAULT 0, - "duree" real, -- durée totale de l'intervention - "description" text, - "note_private" text, - "note_public" text, - "model_pdf" varchar(50), - UNIQUE(ref) -); - -CREATE INDEX idx_llx_fichinter_ref ON llx_fichinter (ref); diff --git a/pgsql/tables/llx_fichinterdet.sql b/pgsql/tables/llx_fichinterdet.sql deleted file mode 100644 index 67c7fe14d27..00000000000 --- a/pgsql/tables/llx_fichinterdet.sql +++ /dev/null @@ -1,34 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2002-2003 Rodolphe Quiedeville --- Copyright (C) 2005-2007 Regis Houssin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_fichinterdet.sql,v 1.3 2007/12/02 21:37:39 eldy Exp --- =================================================================== - -create table llx_fichinterdet -( - rowid SERIAL PRIMARY KEY, - "fk_fichinter" integer, - "date" date, -- date de la ligne d'intervention - "description" text, -- description de la ligne d'intervention - "duree" integer, -- duree de la ligne d'intervention - "rang" integer DEFAULT 0 -- ordre affichage sur la fiche -); diff --git a/pgsql/tables/llx_fournisseur_ca.sql b/pgsql/tables/llx_fournisseur_ca.sql deleted file mode 100644 index 70a0dfaebaf..00000000000 --- a/pgsql/tables/llx_fournisseur_ca.sql +++ /dev/null @@ -1,35 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2006 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_fournisseur_ca.sql,v 1.4 2007/12/02 21:37:39 eldy Exp --- ============================================================================ - -create table llx_fournisseur_ca -( - "fk_societe" integer, - "date_calcul" timestamp, - "year" smallint, - "ca_genere" float, -- ca genere par les ventes des produits de ce fournisseur - "ca_achat" float(11,2) DEFAULT 0, -- ca effectue aupres de ce fournisseur (somme de ses factures) - UNIQUE(fk_societe, year) -); - -CREATE INDEX idx_llx_fournisseur_ca_fk_societe_year ON llx_fournisseur_ca (fk_societe, year); diff --git a/pgsql/tables/llx_groupesociete.sql b/pgsql/tables/llx_groupesociete.sql deleted file mode 100644 index 63d6a9195c7..00000000000 --- a/pgsql/tables/llx_groupesociete.sql +++ /dev/null @@ -1,37 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2000-2004 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_groupesociete.sql,v 1.3 2007/12/02 21:37:39 eldy Exp --- ======================================================================== - - -create table llx_groupesociete -( - rowid SERIAL PRIMARY KEY, - "parent" integer UNIQUE, - "tms" timestamp, - "datec" timestamp, -- creation date - "nom" varchar(60), -- company name - "note" text, -- - "remise" real DEFAULT 0, -- remise systématique pour le client - "fk_user_author" integer -); - diff --git a/pgsql/tables/llx_groupesociete_remise.sql b/pgsql/tables/llx_groupesociete_remise.sql deleted file mode 100644 index e48c01ff8db..00000000000 --- a/pgsql/tables/llx_groupesociete_remise.sql +++ /dev/null @@ -1,38 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2000-2004 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_groupesociete_remise.sql,v 1.3 2007/12/02 21:37:39 eldy Exp --- --- Historique des remises au groupes de societes --- ======================================================================== - - -create table llx_groupesociete_remise -( - rowid SERIAL PRIMARY KEY, - "fk_groupe" integer NOT NULL, - "tms" timestamp, - "datec" timestamp, -- creation date - "fk_user_author" integer, -- utilisateur qui a créé l'info - "remise" real DEFAULT 0, -- remise systématique pour le client - "note" text -); - diff --git a/pgsql/tables/llx_livraison.key.sql b/pgsql/tables/llx_livraison.key.sql deleted file mode 100644 index d3a180281e2..00000000000 --- a/pgsql/tables/llx_livraison.key.sql +++ /dev/null @@ -1,37 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2005 Laurent Destailleur --- Copyright (C) 2008 Regis Houssin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_livraison.key.sql,v 1.3 2008/01/21 19:20:24 hregis Exp --- =================================================================== - - -ALTER TABLE llx_livraison ADD INDEX idx_livraison_fk_soc (fk_soc); -ALTER TABLE llx_livraison ADD INDEX idx_livraison_fk_user_author (fk_user_author); -ALTER TABLE llx_livraison ADD INDEX idx_livraison_fk_user_valid (fk_user_valid); -ALTER TABLE llx_livraison ADD INDEX idx_livraison_fk_adresse_livraison (fk_adresse_livraison); - -ALTER TABLE llx_livraison ADD CONSTRAINT fk_livraison_fk_soc FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid); -ALTER TABLE llx_livraison ADD CONSTRAINT fk_livraison_fk_user_author FOREIGN KEY (fk_user_author) REFERENCES llx_user (rowid); -ALTER TABLE llx_livraison ADD CONSTRAINT fk_livraison_fk_user_valid FOREIGN KEY (fk_user_valid) REFERENCES llx_user (rowid); -ALTER TABLE llx_livraison ADD CONSTRAINT fk_livraison_fk_adresse_livraison FOREIGN KEY (fk_adresse_livraison) REFERENCES llx_societe_adresse_livraison (rowid); - -ALTER TABLE llx_livraison ADD UNIQUE INDEX idx_livraison_uk_ref (ref); \ No newline at end of file diff --git a/pgsql/tables/llx_livraison.sql b/pgsql/tables/llx_livraison.sql deleted file mode 100644 index 0214a23d032..00000000000 --- a/pgsql/tables/llx_livraison.sql +++ /dev/null @@ -1,45 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- Copyright (C) 2008 Regis Houssin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_livraison.sql,v 1.8 2008/01/21 19:17:56 hregis Exp --- =================================================================== - -create table llx_livraison -( - rowid SERIAL PRIMARY KEY, - "tms" timestamp, - "ref" varchar(30) NOT NULL, -- delivery number - "ref_client" varchar(30), -- customer number - "fk_soc" integer NOT NULL, - "fk_expedition" integer, -- expedition auquel est rattache le bon de livraison - "date_creation" timestamp, -- date de creation - "fk_user_author" integer, -- createur du bon de livraison - "date_valid" timestamp, -- date de validation - "fk_user_valid" integer, -- valideur du bon de livraison - "date_livraison" date default NULL, -- date de livraison - "fk_adresse_livraison" integer, -- adresse de livraison - "fk_statut" smallint default 0, - "total_ht" real(24,8) default 0, - "note" text, - "note_public" text, - "model_pdf" varchar(50) -); diff --git a/pgsql/tables/llx_livraisondet.key.sql b/pgsql/tables/llx_livraisondet.key.sql deleted file mode 100644 index fd3e4d3be94..00000000000 --- a/pgsql/tables/llx_livraisondet.key.sql +++ /dev/null @@ -1,28 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2005 Laurent Destailleur --- Copyright (C) 2008 Regis Houssin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_livraisondet.key.sql,v 1.1 2008/01/21 19:20:24 hregis Exp --- =================================================================== - - -ALTER TABLE llx_livraisondet ADD INDEX idx_livraisondet_fk_expedition (fk_livraison); -ALTER TABLE llx_livraisondet ADD CONSTRAINT fk_livraisondet_fk_livraison FOREIGN KEY (fk_livraison) REFERENCES llx_livraison (rowid); diff --git a/pgsql/tables/llx_livraisondet.sql b/pgsql/tables/llx_livraisondet.sql deleted file mode 100644 index ead312e4b2f..00000000000 --- a/pgsql/tables/llx_livraisondet.sql +++ /dev/null @@ -1,37 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- Copyright (C) 2008 Regis Houssin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_livraisondet.sql,v 1.6 2008/01/31 12:16:25 hregis Exp --- =================================================================== - -create table llx_livraisondet -( - rowid SERIAL PRIMARY KEY, - "fk_livraison" integer, - "fk_origin_line" integer, -- Correspondance de la ligne avec le document d'origine (propal, commande) - "fk_product" integer, - "description" text, - "qty" real, -- quantité - "subprice" real(24,8) DEFAULT 0, -- prix unitaire - "total_ht" real(24,8) DEFAULT 0, -- Total HT de la ligne toute quantité - "rang" integer DEFAULT 0 -); diff --git a/pgsql/tables/llx_mailing.sql b/pgsql/tables/llx_mailing.sql deleted file mode 100644 index c2ada300314..00000000000 --- a/pgsql/tables/llx_mailing.sql +++ /dev/null @@ -1,58 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_mailing.sql,v 1.3 2007/12/02 21:37:40 eldy Exp --- ======================================================================== - - --- redaction : 0 --- valide : 1 --- approuvé : 2 --- envoye : 3 - - - - - - - - -create table llx_mailing -( - rowid SERIAL PRIMARY KEY, - "statut" smallint DEFAULT 0, -- - "titre" varchar(60), -- company name - "sujet" varchar(60), -- company name - "body" text, - "cible" varchar(60), - "nbemail" integer, - "email_from" varchar(160), -- company name - "email_replyto" varchar(160), -- company name - "email_errorsto" varchar(160), -- company name - "date_creat" timestamp, -- creation date - "date_valid" timestamp, -- - "date_appro" timestamp, -- - "date_envoi" timestamp, -- date d'envoi - "fk_user_creat" integer, -- utilisateur qui a créé l'info - "fk_user_valid" integer, -- utilisateur qui a créé l'info - "fk_user_appro" integer -- utilisateur qui a créé l'info -); - diff --git a/pgsql/tables/llx_mailing_cibles.key.sql b/pgsql/tables/llx_mailing_cibles.key.sql deleted file mode 100644 index ac6a0f3caf8..00000000000 --- a/pgsql/tables/llx_mailing_cibles.key.sql +++ /dev/null @@ -1,26 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_mailing_cibles.key.sql,v 1.2 2007/12/02 21:37:40 eldy Exp --- =================================================================== - - -ALTER TABLE llx_mailing_cibles ADD UNIQUE uk_mailing_cibles (fk_mailing, email); diff --git a/pgsql/tables/llx_mailing_cibles.sql b/pgsql/tables/llx_mailing_cibles.sql deleted file mode 100644 index 9f85c8771c6..00000000000 --- a/pgsql/tables/llx_mailing_cibles.sql +++ /dev/null @@ -1,38 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_mailing_cibles.sql,v 1.5 2007/12/02 21:37:40 eldy Exp --- ======================================================================== - - -create table llx_mailing_cibles -( - rowid SERIAL PRIMARY KEY, - "fk_mailing" integer NOT NULL, - "fk_contact" integer NOT NULL, - "nom" varchar(160), - "prenom" varchar(160), - "email" varchar(160) NOT NULL, - "statut" smallint NOT NULL DEFAULT 0, - "url" varchar(160), - "date_envoi" timestamp -); - diff --git a/pgsql/tables/llx_menu.key.sql b/pgsql/tables/llx_menu.key.sql deleted file mode 100644 index 53c92853d27..00000000000 --- a/pgsql/tables/llx_menu.key.sql +++ /dev/null @@ -1,30 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2007 Patrick Raguin --- Copyright (C) 2005-2008 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_menu.key.sql,v 1.1 2008/01/14 20:54:17 eldy Exp --- ======================================================================== - - -ALTER TABLE llx_menu ADD INDEX idx_menu_menuhandler_type (menu_handler, type); - -ALTER TABLE llx_menu ADD UNIQUE INDEX idx_menu_uk_menu (menu_handler, fk_menu, url); - diff --git a/pgsql/tables/llx_menu.sql b/pgsql/tables/llx_menu.sql deleted file mode 100644 index c645d6ae1ac..00000000000 --- a/pgsql/tables/llx_menu.sql +++ /dev/null @@ -1,51 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2007 Patrick Raguin --- Copyright (C) 2007-2008 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_menu.sql,v 1.2 2007/02/08 14:40:31 patrickrgn Exp --- ======================================================================== - - -CREATE TABLE `llx_menu` ( - rowid integer AUTO_INCREMENT NOT NULL PRIMARY KEY, - - menu_handler varchar(16) NOT NULL, -- Menu handler name - module varchar(64), -- Module name if record is added by a module - type enum('top','left') NOT NULL, -- Menu top or left - - mainmenu varchar(100) NOT NULL, -- Name family/module (home, companies, ...) - fk_menu int(11) NOT NULL, -- 0 or Id of mother menu line - position integer NOT NULL, -- Sort order of entry - - url varchar(255) NOT NULL, -- Relative (or absolute) url to go - target varchar(100) NULL, -- Target of Url link - - titre varchar(255) NOT NULL, -- Key for menu translation - langs varchar(100), -- Lang file to load for translation - - level tinyint(1), -- Used by auguria menu only. Do not use. - - leftmenu varchar(1) NULL default '1', -- Say if left menu defined in pre.inc.php and used by top menu must be overwritten by dynamic databse menu (1=yes by default) - perms varchar(255), -- Condition to show enabled or disabled - user integer NOT NULL default '0', -- 0 if menu for all users, 1 for external only, 2 for internal only - - tms timestamp -) type=innodb; diff --git a/pgsql/tables/llx_menu_const.key.sql b/pgsql/tables/llx_menu_const.key.sql deleted file mode 100644 index ff0dd44f604..00000000000 --- a/pgsql/tables/llx_menu_const.key.sql +++ /dev/null @@ -1,33 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2007 Patrick Raguin --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_menu_const.key.sql,v 1.2 2007/02/08 14:40:31 patrickrgn Exp --- ======================================================================== - - -ALTER TABLE llx_menu_const ADD INDEX `idx_menu_const_fk_menu` (`fk_menu`); -ALTER TABLE llx_menu_const ADD INDEX `idx_menu_const_fk_constraint` (`fk_constraint`); - -ALTER TABLE llx_menu_const ADD CONSTRAINT `fk_menu_const_fk_menu` FOREIGN KEY (`fk_menu`) REFERENCES `llx_menu` (`rowid`); -ALTER TABLE llx_menu_const ADD CONSTRAINT `fk_menu_const_fk_constraint` FOREIGN KEY (`fk_constraint`) REFERENCES `llx_menu_constraint` (`rowid`); - -ALTER TABLE llx_menu_const ADD UNIQUE KEY uk_menu_const(fk_menu, fk_constraint); diff --git a/pgsql/tables/llx_menu_const.sql b/pgsql/tables/llx_menu_const.sql deleted file mode 100644 index 5ebaf02bc8e..00000000000 --- a/pgsql/tables/llx_menu_const.sql +++ /dev/null @@ -1,32 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2007 Patrick Raguin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_menu_const.sql,v 1.2 2007/02/08 14:40:31 patrickrgn Exp --- ======================================================================== - - -CREATE TABLE `llx_menu_const` ( - `rowid` int(11) NOT NULL auto_increment, - `fk_menu` int(11) NOT NULL, - `fk_constraint` int(11) NOT NULL, - PRIMARY KEY (`rowid`) -) type=innodb; - diff --git a/pgsql/tables/llx_menu_constraint.sql b/pgsql/tables/llx_menu_constraint.sql deleted file mode 100644 index 5433eb5cb80..00000000000 --- a/pgsql/tables/llx_menu_constraint.sql +++ /dev/null @@ -1,30 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2007 Patrick Raguin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_menu_conqtraint.sql,v 1.2 2007/02/08 14:40:31 patrickrgn Exp --- ======================================================================== - - -CREATE TABLE `llx_menu_constraint` ( - `rowid` int(11) NOT NULL, - `action` varchar(255) NOT NULL, - PRIMARY KEY (`rowid`) -) type=innodb; diff --git a/pgsql/tables/llx_notify.sql b/pgsql/tables/llx_notify.sql deleted file mode 100644 index 79b45e5f58f..00000000000 --- a/pgsql/tables/llx_notify.sql +++ /dev/null @@ -1,34 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_notify.sql,v 1.4 2007/12/02 21:37:41 eldy Exp --- =================================================================== - -create table llx_notify -( - rowid SERIAL PRIMARY KEY, - "tms" timestamp, - "daten" timestamp, -- date de la notification - "fk_action" integer NOT NULL, - "fk_contact" integer NOT NULL, - "objet_type" varchar(10) CHECK (objet_type IN ('ficheinter','facture','propale')) , - "objet_id" integer NOT NULL -); diff --git a/pgsql/tables/llx_notify_def.sql b/pgsql/tables/llx_notify_def.sql deleted file mode 100644 index 178ddd40400..00000000000 --- a/pgsql/tables/llx_notify_def.sql +++ /dev/null @@ -1,33 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_notify_def.sql,v 1.4 2007/12/02 21:37:41 eldy Exp --- =================================================================== - -create table llx_notify_def -( - rowid SERIAL PRIMARY KEY, - "tms" timestamp, - "datec" date, -- date de creation - "fk_action" integer NOT NULL, - "fk_soc" integer NOT NULL, - "fk_contact" integer NOT NULL -); diff --git a/pgsql/tables/llx_osc_categories.sql b/pgsql/tables/llx_osc_categories.sql deleted file mode 100644 index aee70ec83f0..00000000000 --- a/pgsql/tables/llx_osc_categories.sql +++ /dev/null @@ -1,35 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_osc_categories.sql,v 1.4 2007/12/02 21:37:41 eldy Exp --- =================================================================== - -CREATE TABLE llx_osc_categories ( - rowid SERIAL PRIMARY KEY, - "dolicatid" int4 NOT NULL default '0', - "osccatid" int4 NOT NULL default '0', - UNIQUE(dolicatid), - UNIQUE(osccatid) -) TYPE=InnoDB COMMENT='Correspondance categorie Dolibarr categorie OSC'; - -CREATE INDEX idx_llx_osc_categories_rowid ON llx_osc_categories (rowid); -CREATE INDEX dolicatid ON llx_osc_categories (dolicatid); -CREATE INDEX osccatid ON llx_osc_categories (osccatid); diff --git a/pgsql/tables/llx_osc_customer.key.sql b/pgsql/tables/llx_osc_customer.key.sql deleted file mode 100644 index 8c1209c7aa2..00000000000 --- a/pgsql/tables/llx_osc_customer.key.sql +++ /dev/null @@ -1,26 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_osc_customer.key.sql,v 1.3 2007/12/02 21:37:41 eldy Exp --- =================================================================== - - -ALTER TABLE llx_osc_customer ADD CONSTRAINT fk_osc_customer_fk_soc FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid); diff --git a/pgsql/tables/llx_osc_customer.sql b/pgsql/tables/llx_osc_customer.sql deleted file mode 100644 index 2b3874d66cf..00000000000 --- a/pgsql/tables/llx_osc_customer.sql +++ /dev/null @@ -1,33 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_osc_customer.sql,v 1.4 2007/12/02 21:37:41 eldy Exp --- =================================================================== - -CREATE TABLE llx_osc_customer ( - "rowid" int4 NOT NULL default '0', - "datem" timestamp default NULL, - "fk_soc" int4 NOT NULL default '0', - UNIQUE(fk_soc) -) TYPE=InnoDB COMMENT='Table transition client OSC - societe Dolibarr'; - -CREATE INDEX idx_llx_osc_customer_rowid ON llx_osc_customer (rowid); -CREATE INDEX fk_soc ON llx_osc_customer (fk_soc); diff --git a/pgsql/tables/llx_osc_order.sql b/pgsql/tables/llx_osc_order.sql deleted file mode 100644 index cf0a613d923..00000000000 --- a/pgsql/tables/llx_osc_order.sql +++ /dev/null @@ -1,33 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_osc_order.sql,v 1.5 2007/12/02 21:37:41 eldy Exp --- =================================================================== - -CREATE TABLE llx_osc_order ( - "rowid" int4 NOT NULL default '0', - "datem" timestamp default NULL, - "fk_commande" int4 NOT NULL default '0', - UNIQUE(fk_commande) -) TYPE=InnoDB COMMENT='Table transition commande OSC - commande Dolibarr'; - -CREATE INDEX idx_llx_osc_order_rowid ON llx_osc_order (rowid); -CREATE INDEX fk_commande ON llx_osc_order (fk_commande); diff --git a/pgsql/tables/llx_osc_product.sql b/pgsql/tables/llx_osc_product.sql deleted file mode 100644 index 155b125b432..00000000000 --- a/pgsql/tables/llx_osc_product.sql +++ /dev/null @@ -1,35 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_osc_product.sql,v 1.5 2007/12/02 21:37:41 eldy Exp --- =================================================================== - -CREATE TABLE llx_osc_product ( - "rowid" int4 NOT NULL default '0', - "datem" timestamp default NULL, - "fk_product" int4 NOT NULL default '0', - UNIQUE(fk_product) -) TYPE=InnoDB COMMENT='Table transition produit OSC - produit Dolibarr'; - -CREATE INDEX idx_llx_osc_product_rowid ON llx_osc_product (rowid); -CREATE INDEX fk_product ON llx_osc_product (fk_product); - - diff --git a/pgsql/tables/llx_paiement.sql b/pgsql/tables/llx_paiement.sql deleted file mode 100644 index 3d69aeb2324..00000000000 --- a/pgsql/tables/llx_paiement.sql +++ /dev/null @@ -1,47 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville --- Copyright (C) 2004 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_paiement.sql,v 1.16 2008/01/27 00:16:02 eldy Exp --- =================================================================== - - --- Satut, 0 ou 1, 1 n'est plus supprimable --- fk_export_compta 0 pas exporté - - -create table llx_paiement -( - rowid SERIAL PRIMARY KEY, - "fk_facture" integer, - "datec" timestamp, -- date de creation - "tms" timestamp, - "datep" timestamp, -- payment date - "amount" real DEFAULT 0, - "fk_paiement" integer NOT NULL, - "num_paiement" varchar(50), - "note" text, - "fk_bank" integer NOT NULL DEFAULT 0, - "fk_user_creat" integer, -- utilisateur qui a créé l'info - "fk_user_modif" integer, -- utilisateur qui a modifié l'info - "statut" smallint DEFAULT 0 NOT NULL, - "fk_export_compta" integer DEFAULT 0 NOT NULL -); diff --git a/pgsql/tables/llx_paiement_facture.key.sql b/pgsql/tables/llx_paiement_facture.key.sql deleted file mode 100644 index 4567bd87409..00000000000 --- a/pgsql/tables/llx_paiement_facture.key.sql +++ /dev/null @@ -1,34 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_paiement_facture.key.sql,v 1.5 2007/12/02 21:37:41 eldy Exp --- =========================================================================== - - --- Supprimme orhpelins pour permettre montée de la clé --- V4 DELETE llx_paiement_facture FROM llx_paiement_facture LEFT JOIN llx_facture ON llx_paiement_facture.fk_facture = llx_facture.rowid WHERE llx_facture.rowid IS NULL; --- V4 DELETE llx_paiement_facture FROM llx_paiement_facture LEFT JOIn llx_paiement ON llx_paiement_facture.fk_facture = llx_paiement.rowid WHERE llx_paiement.rowid IS NULL; - -ALTER TABLE llx_paiement_facture ADD INDEX idx_paiement_facture_fk_facture (fk_facture); -ALTER TABLE llx_paiement_facture ADD CONSTRAINT fk_paiement_facture_fk_facture FOREIGN KEY (fk_facture) REFERENCES llx_facture (rowid); - -ALTER TABLE llx_paiement_facture ADD INDEX idx_paiement_facture_fk_paiement (fk_paiement); -ALTER TABLE llx_paiement_facture ADD CONSTRAINT fk_paiement_facture_fk_paiement FOREIGN KEY (fk_paiement) REFERENCES llx_paiement (rowid); diff --git a/pgsql/tables/llx_paiement_facture.sql b/pgsql/tables/llx_paiement_facture.sql deleted file mode 100644 index 16147ed355c..00000000000 --- a/pgsql/tables/llx_paiement_facture.sql +++ /dev/null @@ -1,31 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2004 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_paiement_facture.sql,v 1.9 2007/12/02 21:37:41 eldy Exp --- =================================================================== - -create table llx_paiement_facture -( - rowid SERIAL PRIMARY KEY, - "fk_paiement" integer, - "fk_facture" integer, - "amount" real DEFAULT 0 -); diff --git a/pgsql/tables/llx_paiementcharge.sql b/pgsql/tables/llx_paiementcharge.sql deleted file mode 100644 index cef63aa37b5..00000000000 --- a/pgsql/tables/llx_paiementcharge.sql +++ /dev/null @@ -1,40 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2004 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_paiementcharge.sql,v 1.3 2007/12/02 21:37:41 eldy Exp --- =================================================================== - - -create table llx_paiementcharge -( - rowid SERIAL PRIMARY KEY, - "fk_charge" integer, - "datec" timestamp, -- date de creation - "tms" timestamp, - "datep" timestamp, -- payment date - "amount" real DEFAULT 0, - "fk_typepaiement" integer NOT NULL, - "num_paiement" varchar(50), - "note" text, - "fk_bank" integer NOT NULL, - "fk_user_creat" integer, -- utilisateur qui a créé l'info - "fk_user_modif" integer -- utilisateur qui a modifié l'info -); diff --git a/pgsql/tables/llx_paiementfourn.sql b/pgsql/tables/llx_paiementfourn.sql deleted file mode 100644 index 56af8285475..00000000000 --- a/pgsql/tables/llx_paiementfourn.sql +++ /dev/null @@ -1,40 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2003-2004 Rodolphe Quiedeville --- Copyright (C) 2004 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_paiementfourn.sql,v 1.8 2007/12/02 21:37:41 eldy Exp --- =================================================================== - -create table llx_paiementfourn -( - rowid SERIAL PRIMARY KEY, - "tms" timestamp, - "datec" timestamp, -- date de creation de l'enregistrement - "fk_facture_fourn" integer, -- facture - "datep" timestamp, -- date de paiement - "amount" real DEFAULT 0, -- montant - "fk_user_author" integer, -- auteur - "fk_paiement" integer NOT NULL, -- moyen de paiement - "num_paiement" varchar(50), -- numéro de paiement (cheque) - "note" text, - "fk_bank" integer NOT NULL, - "statut" int2 NOT NULL DEFAULT 0 -); diff --git a/pgsql/tables/llx_paiementfourn_facturefourn.key.sql b/pgsql/tables/llx_paiementfourn_facturefourn.key.sql deleted file mode 100644 index 55fc28ef326..00000000000 --- a/pgsql/tables/llx_paiementfourn_facturefourn.key.sql +++ /dev/null @@ -1,28 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2003 Rodolphe Quiedeville --- Copyright (C) 2005 Marc Barilley / Océbo --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_paiementfourn_facturefourn.key.sql,v 1.3 2007/12/02 21:37:42 eldy Exp --- =========================================================================== - -ALTER TABLE llx_paiementfourn_facturefourn ADD INDEX idx_paiementfourn_facturefourn_fk_facture(fk_facturefourn); -ALTER TABLE llx_paiementfourn_facturefourn ADD INDEX idx_paiementfourn_facturefourn_fk_paiement(fk_paiementfourn); diff --git a/pgsql/tables/llx_paiementfourn_facturefourn.sql b/pgsql/tables/llx_paiementfourn_facturefourn.sql deleted file mode 100644 index 4c792297f2a..00000000000 --- a/pgsql/tables/llx_paiementfourn_facturefourn.sql +++ /dev/null @@ -1,33 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2003 Rodolphe Quiedeville --- Copyright (C) 2005 Marc Barilley / Océbo --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_paiementfourn_facturefourn.sql,v 1.4 2007/12/02 21:37:42 eldy Exp --- =========================================================================== - -create table llx_paiementfourn_facturefourn -( - rowid SERIAL PRIMARY KEY, - "fk_paiementfourn" INT(11) DEFAULT NULL, - "fk_facturefourn" INT(11) DEFAULT NULL, - "amount" real DEFAULT '0' -); \ No newline at end of file diff --git a/pgsql/tables/llx_pr_exp.sql b/pgsql/tables/llx_pr_exp.sql deleted file mode 100644 index 92887bbbaf8..00000000000 --- a/pgsql/tables/llx_pr_exp.sql +++ /dev/null @@ -1,35 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- Copyright (C) 2008 Regis Houssin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_pr_exp.sql,v 1.1 2008/01/31 13:40:49 hregis Exp --- =================================================================== - - -create table llx_pr_exp -( - rowid SERIAL PRIMARY KEY, - "fk_propal" integer NOT NULL, - "fk_expedition" integer NOT NULL -); - -CREATE INDEX idx_llx_pr_exp_fk_propal ON llx_pr_exp (fk_propal); -CREATE INDEX idx_llx_pr_exp_fk_expedition ON llx_pr_exp (fk_expedition); diff --git a/pgsql/tables/llx_pr_liv.sql b/pgsql/tables/llx_pr_liv.sql deleted file mode 100644 index 8de7f77900a..00000000000 --- a/pgsql/tables/llx_pr_liv.sql +++ /dev/null @@ -1,35 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- Copyright (C) 2008 Regis Houssin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_pr_liv.sql,v 1.1 2008/01/31 13:40:50 hregis Exp --- =================================================================== - - -create table llx_pr_liv -( - rowid SERIAL PRIMARY KEY, - "fk_propal" integer NOT NULL, - "fk_livraison" integer NOT NULL -); - -CREATE INDEX idx_llx_pr_liv_fk_propal ON llx_pr_liv (fk_propal); -CREATE INDEX idx_llx_pr_liv_fk_livraison ON llx_pr_liv (fk_livraison); diff --git a/pgsql/tables/llx_prelevement_bons.sql b/pgsql/tables/llx_prelevement_bons.sql deleted file mode 100644 index d85161c9814..00000000000 --- a/pgsql/tables/llx_prelevement_bons.sql +++ /dev/null @@ -1,49 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_prelevement_bons.sql,v 1.2 2007/12/02 21:37:42 eldy Exp --- =================================================================== - --- --- Bons de prélèvement --- --- statut 1 : transmis à la banque --- statut 2 : credite --- -create table llx_prelevement_bons -( - rowid SERIAL PRIMARY KEY, - "ref" varchar(12), -- reference - "datec" timestamp, -- date de creation - "amount" real DEFAULT 0, -- montant total du prélèvement - "statut" smallint DEFAULT 0, -- statut - "credite" smallint DEFAULT 0, -- indique si le prelevement a été credité - "note" text, - "date_trans" timestamp, -- date de transmission à la banque - "method_trans" smallint, -- méthode de transmission - "fk_user_trans" integer, -- user qui a effectué la transmission - "date_credit" timestamp, -- date de crédit sur le compte - "fk_user_credit" integer, -- user qui a remonté l'info de crédit - - UNIQUE(ref) -); - -CREATE INDEX idx_llx_prelevement_bons_ref ON llx_prelevement_bons (ref); diff --git a/pgsql/tables/llx_prelevement_facture.key.sql b/pgsql/tables/llx_prelevement_facture.key.sql deleted file mode 100644 index f0b71057ba9..00000000000 --- a/pgsql/tables/llx_prelevement_facture.key.sql +++ /dev/null @@ -1,31 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2005 Rodolphe Quiedeville --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_prelevement_facture.key.sql,v 1.4 2007/12/02 21:37:42 eldy Exp --- ============================================================================ - - -ALTER TABLE llx_prelevement_facture ADD INDEX idx_prelevement_facture_fk_prelevement_lignes (fk_prelevement_lignes); - - -ALTER TABLE llx_prelevement_facture ADD CONSTRAINT fk_prelevement_facture_fk_prelevement_lignes FOREIGN KEY (fk_prelevement_lignes) REFERENCES llx_prelevement_lignes (rowid); - diff --git a/pgsql/tables/llx_prelevement_facture.sql b/pgsql/tables/llx_prelevement_facture.sql deleted file mode 100644 index a49dffc5421..00000000000 --- a/pgsql/tables/llx_prelevement_facture.sql +++ /dev/null @@ -1,31 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_prelevement_facture.sql,v 1.5 2007/12/02 21:37:42 eldy Exp --- =================================================================== - - -create table llx_prelevement_facture -( - rowid SERIAL PRIMARY KEY, - "fk_facture" integer NOT NULL, - "fk_prelevement_lignes" integer NOT NULL -); diff --git a/pgsql/tables/llx_prelevement_facture_demande.sql b/pgsql/tables/llx_prelevement_facture_demande.sql deleted file mode 100644 index f372e1b7ccc..00000000000 --- a/pgsql/tables/llx_prelevement_facture_demande.sql +++ /dev/null @@ -1,42 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_prelevement_facture_demande.sql,v 1.5 2007/12/02 21:37:42 eldy Exp --- =================================================================== - - - - -create table llx_prelevement_facture_demande -( - rowid SERIAL PRIMARY KEY, - "fk_facture" integer NOT NULL, - "amount" real NOT NULL, - "date_demande" timestamp, - "traite" smallint DEFAULT 0, - "date_traite" timestamp, - "fk_prelevement_bons" integer, - "fk_user_demande" integer NOT NULL, - "code_banque" varchar(7), - "code_guichet" varchar(6), - "number" varchar(255), - "cle_rib" varchar(5) -); diff --git a/pgsql/tables/llx_prelevement_lignes.key.sql b/pgsql/tables/llx_prelevement_lignes.key.sql deleted file mode 100644 index 15e7396f60e..00000000000 --- a/pgsql/tables/llx_prelevement_lignes.key.sql +++ /dev/null @@ -1,31 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2005 Rodolphe Quiedeville --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_prelevement_lignes.key.sql,v 1.4 2007/12/02 21:37:43 eldy Exp --- ============================================================================ - - -ALTER TABLE llx_prelevement_lignes ADD INDEX idx_prelevement_lignes_fk_prelevement_bons (fk_prelevement_bons); - - -ALTER TABLE llx_prelevement_lignes ADD CONSTRAINT fk_prelevement_lignes_fk_prelevement_bons FOREIGN KEY (fk_prelevement_bons) REFERENCES llx_prelevement_bons (rowid); - diff --git a/pgsql/tables/llx_prelevement_lignes.sql b/pgsql/tables/llx_prelevement_lignes.sql deleted file mode 100644 index 7618fcc6599..00000000000 --- a/pgsql/tables/llx_prelevement_lignes.sql +++ /dev/null @@ -1,41 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_prelevement_lignes.sql,v 1.2 2007/12/02 21:37:43 eldy Exp --- =================================================================== - - - - -create table llx_prelevement_lignes -( - rowid SERIAL PRIMARY KEY, - "fk_prelevement_bons" integer, - "fk_soc" integer NOT NULL, - "statut" smallint DEFAULT 0, - "client_nom" varchar(255), - "amount" real DEFAULT 0, - "code_banque" varchar(7), - "code_guichet" varchar(6), - "number" varchar(255), - "cle_rib" varchar(5), - "note" text -); diff --git a/pgsql/tables/llx_prelevement_notifications.sql b/pgsql/tables/llx_prelevement_notifications.sql deleted file mode 100644 index 2d4633b2d3b..00000000000 --- a/pgsql/tables/llx_prelevement_notifications.sql +++ /dev/null @@ -1,39 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_prelevement_notifications.sql,v 1.2 2007/12/02 21:37:43 eldy Exp --- =================================================================== - --- --- Utilisateur a notifier --- --- actions : --- 'em' emission d'un bon --- 'tr' tranmission d'un bon --- 'cr' credit du bon par la banque - - -create table llx_prelevement_notifications -( - rowid SERIAL PRIMARY KEY, - "fk_user" integer NOT NULL, - "action" varchar(2) -); diff --git a/pgsql/tables/llx_prelevement_rejet.sql b/pgsql/tables/llx_prelevement_rejet.sql deleted file mode 100644 index 7fb86ee366c..00000000000 --- a/pgsql/tables/llx_prelevement_rejet.sql +++ /dev/null @@ -1,36 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_prelevement_rejet.sql,v 1.7 2007/12/02 21:37:43 eldy Exp --- =================================================================== - -create table llx_prelevement_rejet -( - rowid SERIAL PRIMARY KEY, - "fk_prelevement_lignes" integer, - "date_rejet" timestamp, - "motif" integer, - "date_creation" timestamp, - "fk_user_creation" integer, - "note" text, - "afacturer" smallint default 0, - "fk_facture" integer -); diff --git a/pgsql/tables/llx_product.key.sql b/pgsql/tables/llx_product.key.sql deleted file mode 100644 index ce0632f3530..00000000000 --- a/pgsql/tables/llx_product.key.sql +++ /dev/null @@ -1,28 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2002-2004 Rodolphe Quiedeville --- Copyright (C) 2004-2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_product.key.sql,v 1.2 2007/12/02 21:37:43 eldy Exp --- ============================================================================ - - -ALTER TABLE llx_product ADD UNIQUE uk_product_ref (ref); - diff --git a/pgsql/tables/llx_product.sql b/pgsql/tables/llx_product.sql deleted file mode 100644 index 5c028097cfe..00000000000 --- a/pgsql/tables/llx_product.sql +++ /dev/null @@ -1,55 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2002-2006 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_product.sql,v 1.38 2007/12/02 21:37:44 eldy Exp --- ============================================================================ - -create table llx_product -( - rowid SERIAL PRIMARY KEY, - "datec" timestamp, - "tms" timestamp, - "ref" varchar(32) NOT NULL, - "label" varchar(255) NOT NULL, - "description" text, - "note" text, - "price" real(24,8) DEFAULT 0, - "price_ttc" real(24,8) DEFAULT 0, - "price_base_type" varchar(3) DEFAULT 'HT', - "tva_tx" real(6,3), - "fk_user_author" integer, - "envente" smallint DEFAULT 1, - "nbvente" integer DEFAULT 0, - "fk_product_type" integer DEFAULT 0, - "duration" varchar(6), - "stock_propale" integer DEFAULT 0, - "stock_commande" integer DEFAULT 0, - "seuil_stock_alerte" integer DEFAULT 0, - "stock_loc" varchar(10), -- emplacement dans le stock - "barcode" varchar(255) DEFAULT NULL, - "fk_barcode_type" integer DEFAULT 0, - "partnumber" varchar(32), - "weight" float DEFAULT NULL, - "weight_units" smallint DEFAULT NULL, - "volume" float DEFAULT NULL, - "volume_units" smallint DEFAULT NULL, - "canvas" varchar(15) DEFAULT '' -); diff --git a/pgsql/tables/llx_product_ca.sql b/pgsql/tables/llx_product_ca.sql deleted file mode 100644 index 857417e7a5d..00000000000 --- a/pgsql/tables/llx_product_ca.sql +++ /dev/null @@ -1,34 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2006 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_product_ca.sql,v 1.2 2007/12/02 21:37:44 eldy Exp --- ============================================================================ - -create table llx_product_ca -( - "fk_product" integer, - "date_calcul" timestamp, - "year" smallint, - "ca_genere" float, - UNIQUE(fk_product, year) -); - -CREATE INDEX idx_llx_product_ca_fk_product_year ON llx_product_ca (fk_product, year); diff --git a/pgsql/tables/llx_product_cnv_livre.sql b/pgsql/tables/llx_product_cnv_livre.sql deleted file mode 100644 index f7a392e0443..00000000000 --- a/pgsql/tables/llx_product_cnv_livre.sql +++ /dev/null @@ -1,49 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2006-2007 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_product_cnv_livre.sql,v 1.6 2007/12/02 21:37:44 eldy Exp --- ============================================================================ - --- --- Produit specifique livre --- - - - -create table llx_product_cnv_livre -( - rowid integer PRIMARY KEY, - "isbn" varchar(13), -- code ISBN - "ean" varchar(13), -- code EAN - "format" varchar(7), -- format de l'ouvrage - "px_feuillet" float(12,4), -- prix au feuillet - "px_reliure" float(12,4), -- prix de la reliure - "px_couverture" float(12,4), -- prix de la couverture - "px_revient" float(12,4), -- prix de revient - "stock_loc" varchar(5), -- emplacement dans le stock - "pages" smallint, -- nombre de page - "fk_couverture" integer, - "fk_contrat" integer, - "fk_auteur" integer DEFAULT 0 -- auteur lien vers llx_societe -); - - - diff --git a/pgsql/tables/llx_product_cnv_livre_contrat.sql b/pgsql/tables/llx_product_cnv_livre_contrat.sql deleted file mode 100644 index b480ec1fb33..00000000000 --- a/pgsql/tables/llx_product_cnv_livre_contrat.sql +++ /dev/null @@ -1,40 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2006-2007 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_product_cnv_livre_contrat.sql,v 1.4 2007/12/02 21:37:44 eldy Exp --- ============================================================================ - - - -create table llx_product_cnv_livre_contrat -( - rowid SERIAL PRIMARY KEY, - "fk_cnv_livre" integer, - "quantite" integer, -- quantite achete - "taux" float(3,2), -- taux contractuel - "date_app" timestamp, -- date d'application - "duree" varchar(50), -- duree du contrat - "fk_user" integer, -- utilisateur qui a saisi le contrat - "locked" smallint default 0 -- indique si le contrat est verrouille a la modification -); - - - diff --git a/pgsql/tables/llx_product_det.sql b/pgsql/tables/llx_product_det.sql deleted file mode 100644 index 73e48930712..00000000000 --- a/pgsql/tables/llx_product_det.sql +++ /dev/null @@ -1,33 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2002-2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_product_det.sql,v 1.4 2007/12/02 21:37:44 eldy Exp --- ============================================================================ - -create table llx_product_det -( - rowid SERIAL PRIMARY KEY, - "fk_product" integer DEFAULT 0 NOT NULL, - "lang" varchar(5) DEFAULT 0 NOT NULL, - "label" varchar(255) NOT NULL, - "description" text, - "note" text -); diff --git a/pgsql/tables/llx_product_fournisseur.key.sql b/pgsql/tables/llx_product_fournisseur.key.sql deleted file mode 100644 index 4ecbbb67409..00000000000 --- a/pgsql/tables/llx_product_fournisseur.key.sql +++ /dev/null @@ -1,29 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2002-2004 Rodolphe Quiedeville --- Copyright (C) 2004-2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_product_fournisseur.key.sql,v 1.1 2008/07/02 22:37:52 eldy Exp --- ============================================================================ - - -ALTER TABLE llx_product_fournisseur ADD INDEX idx_product_fourn_fk_product (fk_product); - -ALTER TABLE llx_product_fournisseur ADD INDEX idx_product_fourn_fk_soc (fk_soc); diff --git a/pgsql/tables/llx_product_fournisseur.sql b/pgsql/tables/llx_product_fournisseur.sql deleted file mode 100644 index 61a0ce1b62f..00000000000 --- a/pgsql/tables/llx_product_fournisseur.sql +++ /dev/null @@ -1,35 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_product_fournisseur.sql,v 1.6 2008/07/02 22:37:52 eldy Exp --- ============================================================================ - -create table llx_product_fournisseur -( - rowid SERIAL PRIMARY KEY, - "datec" timestamp, - "tms" timestamp, - "fk_product" integer, - "fk_soc" integer, - "ref_fourn" varchar(30), - "fk_user_author" integer -); - diff --git a/pgsql/tables/llx_product_fournisseur_price.key.sql b/pgsql/tables/llx_product_fournisseur_price.key.sql deleted file mode 100644 index 6b2ad7ad44d..00000000000 --- a/pgsql/tables/llx_product_fournisseur_price.key.sql +++ /dev/null @@ -1,33 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2003 Rodolphe Quiedeville --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_product_fournisseur_price.key.sql,v 1.7 2007/12/02 21:37:45 eldy Exp --- ============================================================================ - - -ALTER TABLE llx_product_fournisseur_price ADD INDEX idx_product_fournisseur_price_fk_user (fk_user); -ALTER TABLE llx_product_fournisseur_price ADD INDEX idx_product_fournisseur_price_fk_product_fournisseur (fk_product_fournisseur); - -ALTER TABLE llx_product_fournisseur_price ADD CONSTRAINT fk_product_fournisseur_price_fk_user FOREIGN KEY (fk_user) REFERENCES llx_user (rowid); -ALTER TABLE llx_product_fournisseur_price ADD CONSTRAINT fk_product_fournisseur_price_fk_product_fournisseur FOREIGN KEY (fk_product_fournisseur) REFERENCES llx_product_fournisseur (rowid); - - diff --git a/pgsql/tables/llx_product_fournisseur_price.sql b/pgsql/tables/llx_product_fournisseur_price.sql deleted file mode 100644 index 44a71c5213d..00000000000 --- a/pgsql/tables/llx_product_fournisseur_price.sql +++ /dev/null @@ -1,36 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_product_fournisseur_price.sql,v 1.8 2007/12/02 21:37:45 eldy Exp --- ============================================================================ - - -create table llx_product_fournisseur_price -( - rowid SERIAL PRIMARY KEY, - "datec" timestamp, - "tms" timestamp, - "fk_product_fournisseur" integer NOT NULL, - "price" real(24,8) DEFAULT 0, - "quantity" real, - "unitprice" real(24,8) DEFAULT 0, - "fk_user" integer -); diff --git a/pgsql/tables/llx_product_fournisseur_price_log.sql b/pgsql/tables/llx_product_fournisseur_price_log.sql deleted file mode 100644 index e7e98024b61..00000000000 --- a/pgsql/tables/llx_product_fournisseur_price_log.sql +++ /dev/null @@ -1,34 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_product_fournisseur_price_log.sql,v 1.6 2007/12/02 21:37:45 eldy Exp --- ============================================================================ - - -create table llx_product_fournisseur_price_log -( - rowid SERIAL PRIMARY KEY, - "datec" timestamp, - "fk_product_fournisseur" integer NOT NULL, - "price" real(24,8) DEFAULT 0, - "quantity" real, - "fk_user" integer -); diff --git a/pgsql/tables/llx_product_price.sql b/pgsql/tables/llx_product_price.sql deleted file mode 100644 index 839f9b4e485..00000000000 --- a/pgsql/tables/llx_product_price.sql +++ /dev/null @@ -1,39 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2002-2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_product_price.sql,v 1.11 2007/12/02 21:37:45 eldy Exp --- ============================================================================ - -create table llx_product_price -( - rowid SERIAL PRIMARY KEY, - "tms" timestamp, - "fk_product" integer NOT NULL, - "date_price" timestamp, - "price_level" int2 NULL DEFAULT 1, - "price" real(24,8), - "price_ttc" real(24,8) DEFAULT 0, - "price_base_type" varchar(3) DEFAULT 'HT', - "tva_tx" real(6,3) NOT NULL, - "fk_user_author" integer, - "envente" smallint DEFAULT 1 -); - diff --git a/pgsql/tables/llx_product_stock.key.sql b/pgsql/tables/llx_product_stock.key.sql deleted file mode 100644 index 0a8b97d58f5..00000000000 --- a/pgsql/tables/llx_product_stock.key.sql +++ /dev/null @@ -1,29 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2002-2004 Rodolphe Quiedeville --- Copyright (C) 2004-2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_product_stock.key.sql,v 1.1 2008/07/02 22:37:52 eldy Exp --- ============================================================================ - - -ALTER TABLE llx_product_stock ADD INDEX idx_product_stock_fk_product (fk_product); - -ALTER TABLE llx_product_stock ADD INDEX idx_product_stock_fk_entrepot (fk_entrepot); diff --git a/pgsql/tables/llx_product_stock.sql b/pgsql/tables/llx_product_stock.sql deleted file mode 100644 index 3a6a783d739..00000000000 --- a/pgsql/tables/llx_product_stock.sql +++ /dev/null @@ -1,33 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_product_stock.sql,v 1.8 2008/07/02 22:37:52 eldy Exp --- ============================================================================ - -create table llx_product_stock -( - rowid SERIAL PRIMARY KEY, - "tms" timestamp, - "fk_product" integer NOT NULL, - "fk_entrepot" integer NOT NULL, - "reel" integer -- stock réel -); - diff --git a/pgsql/tables/llx_product_subproduct.sql b/pgsql/tables/llx_product_subproduct.sql deleted file mode 100644 index 7b35434f309..00000000000 --- a/pgsql/tables/llx_product_subproduct.sql +++ /dev/null @@ -1,34 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2006 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_product_subproduct.sql,v 1.2 2007/12/02 21:37:45 eldy Exp --- ============================================================================ - -create table llx_product_subproduct -( - rowid SERIAL PRIMARY KEY, - "fk_product" integer NOT NULL, -- id du produit maitre - "fk_product_subproduct" integer NOT NULL, -- id du sous-produit - UNIQUE(fk_product, fk_product_subproduct) -); - -CREATE INDEX idx_llx_product_subproduct_fk_product_fk_product_subproduct ON llx_product_subproduct (fk_product, fk_product_subproduct); - diff --git a/pgsql/tables/llx_projet.sql b/pgsql/tables/llx_projet.sql deleted file mode 100644 index c9b6c992a60..00000000000 --- a/pgsql/tables/llx_projet.sql +++ /dev/null @@ -1,42 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =========================================================================== --- Copyright (C) 2002 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_projet.sql,v 1.6 2008/03/02 22:20:47 eldy Exp --- =========================================================================== - - - -create table llx_projet -( - rowid SERIAL PRIMARY KEY, - "fk_soc" integer, - "fk_statut" smallint NOT NULL, - "tms" timestamp, - "dateo" date, -- date d'ouverture du projet - "ref" varchar(50), - "title" varchar(255), - "fk_user_resp" integer, -- responsable du projet - "fk_user_creat" integer, -- createur du projet - "note" text, - UNIQUE(ref) -); - -CREATE INDEX idx_llx_projet_ref ON llx_projet (ref); diff --git a/pgsql/tables/llx_projet_task.sql b/pgsql/tables/llx_projet_task.sql deleted file mode 100644 index a0888fcb292..00000000000 --- a/pgsql/tables/llx_projet_task.sql +++ /dev/null @@ -1,35 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =========================================================================== --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_projet_task.sql,v 1.3 2008/07/02 22:37:51 eldy Exp --- =========================================================================== - -create table llx_projet_task -( - rowid SERIAL PRIMARY KEY, - "fk_projet" integer NOT NULL, - "fk_task_parent" integer NOT NULL, - "title" varchar(255), - "duration_effective" real NOT NULL, - "fk_user_creat" integer, -- createur - "statut" varchar(6) CHECK (statut IN ('open','closed')) DEFAULT 'open', - "note" text -); diff --git a/pgsql/tables/llx_projet_task_actors.sql b/pgsql/tables/llx_projet_task_actors.sql deleted file mode 100644 index 58c40aa6139..00000000000 --- a/pgsql/tables/llx_projet_task_actors.sql +++ /dev/null @@ -1,34 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =========================================================================== --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_projet_task_actors.sql,v 1.3 2008/07/02 22:37:52 eldy Exp --- =========================================================================== - - -create table llx_projet_task_actors -( - "fk_projet_task" integer NOT NULL, - "fk_user" integer NOT NULL, - "role" varchar(5) CHECK (role IN ('admin','read','acto','info')) DEFAULT 'admin', - UNIQUE(fk_projet_task, fk_user) -); - -CREATE INDEX idx_llx_projet_task_actors_fk_projet_task_fk_user ON llx_projet_task_actors (fk_projet_task, fk_user); diff --git a/pgsql/tables/llx_projet_task_time.sql b/pgsql/tables/llx_projet_task_time.sql deleted file mode 100644 index 81cb69c8b71..00000000000 --- a/pgsql/tables/llx_projet_task_time.sql +++ /dev/null @@ -1,33 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =========================================================================== --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_projet_task_time.sql,v 1.5 2008/07/02 22:37:52 eldy Exp --- =========================================================================== - -create table llx_projet_task_time -( - rowid SERIAL PRIMARY KEY, - "fk_task" integer NOT NULL, - "task_date" date, - "task_duration" real, - "fk_user" integer, - "note" text -); diff --git a/pgsql/tables/llx_propal.key.sql b/pgsql/tables/llx_propal.key.sql deleted file mode 100644 index ed015bb612d..00000000000 --- a/pgsql/tables/llx_propal.key.sql +++ /dev/null @@ -1,30 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2002-2004 Rodolphe Quiedeville --- Copyright (C) 2004-2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_propal.key.sql,v 1.7 2007/12/02 21:37:46 eldy Exp --- ============================================================================ - - -ALTER TABLE llx_propal ADD INDEX idx_propal_fk_soc (fk_soc); - - -ALTER TABLE llx_propal ADD CONSTRAINT fk_propal_fk_soc FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid); \ No newline at end of file diff --git a/pgsql/tables/llx_propal.sql b/pgsql/tables/llx_propal.sql deleted file mode 100644 index 8ff265e6716..00000000000 --- a/pgsql/tables/llx_propal.sql +++ /dev/null @@ -1,62 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2001-2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_propal.sql,v 1.19 2007/12/02 21:37:46 eldy Exp --- =================================================================== - - - -create table llx_propal -( - rowid SERIAL PRIMARY KEY, - "fk_soc" integer, - "fk_projet" integer DEFAULT 0, -- projet auquel est rattache la propale - "ref" varchar(30) NOT NULL, -- propal number - "ref_client" varchar(30), -- customer order number - "datec" timestamp, -- date de creation - "datep" date, -- date de la propal - "fin_validite" timestamp, -- date de fin de validite - "date_valid" timestamp, -- date de validation - "date_cloture" timestamp, -- date de cloture - "fk_user_author" integer, -- createur de la propale - "fk_user_valid" integer, -- valideur de la propale - "fk_user_cloture" integer, -- cloture de la propale signee ou non signee - "fk_statut" smallint DEFAULT 0 NOT NULL, - "price" real DEFAULT 0, -- (obsolete) - "remise_percent" real DEFAULT 0, -- remise globale relative en pourcent (obsolete) - "remise_absolue" real DEFAULT 0, -- remise globale absolue (obsolete) - "remise" real DEFAULT 0, -- remise calculee (obsolete) - "total_ht" real(24,8) DEFAULT 0, -- montant total ht apres remise globale - "tva" real(24,8) DEFAULT 0, -- montant total tva apres remise globale - "total" real(24,8) DEFAULT 0, -- montant total ttc apres remise globale - "fk_cond_reglement" integer, -- condition de reglement (30 jours, fin de mois ...) - "fk_mode_reglement" integer, -- mode de reglement (Virement, Prélèvement) - - "note" text, - "note_public" text, - "model_pdf" varchar(50), - "date_livraison" date default NULL, - "fk_adresse_livraison" integer, -- adresse de livraison - - UNIQUE(ref) -); - -CREATE INDEX idx_llx_propal_ref ON llx_propal (ref); diff --git a/pgsql/tables/llx_propaldet.sql b/pgsql/tables/llx_propaldet.sql deleted file mode 100644 index a85bae0a305..00000000000 --- a/pgsql/tables/llx_propaldet.sql +++ /dev/null @@ -1,55 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2002-2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_propaldet.sql,v 1.20 2008/01/09 09:48:23 hregis Exp --- =================================================================== - -create table llx_propaldet -( - rowid SERIAL PRIMARY KEY, - "fk_propal" integer, - "fk_product" integer, - "description" text, - "fk_remise_except" integer NULL, -- Lien vers table des remises fixes - "tva_tx" real(6,3) DEFAULT 0, -- taux tva - "qty" real, -- quantité - "remise_percent" real DEFAULT 0, -- pourcentage de remise - "remise" real DEFAULT 0, -- montant de la remise (obsolete) - "price" real, -- prix final (obsolete) - "subprice" real(24,8) DEFAULT 0, -- prix unitaire article - "total_ht" real(24,8) DEFAULT 0, -- Total HT de la ligne toute quantité et incluant remise ligne et globale - "total_tva" real(24,8) DEFAULT 0, -- Total TVA de la ligne toute quantité et incluant remise ligne et globale - "total_ttc" real(24,8) DEFAULT 0, -- Total TTC de la ligne toute quantité et incluant remise ligne et globale - "info_bits" integer DEFAULT 0, -- TVA NPR ou non - "pa_ht" real(24,8) DEFAULT 0, -- prix d'achat HT - "marge_tx" real(6,3) DEFAULT 0, -- taux de marge (marge sur prix d'achat) - "marque_tx" real(6,3) DEFAULT 0, -- taux de marque (marge sur prix de vente) - "special_code" int2 DEFAULT 0, -- code pour les lignes speciales - "rang" integer DEFAULT 0 -- ordre affichage sur la propal -); - --- --- Liste des codes pour special_code --- --- 1 : frais de port --- 2 : ecotaxe --- 3 : produit/service propose en option --- \ No newline at end of file diff --git a/pgsql/tables/llx_rights_def.sql b/pgsql/tables/llx_rights_def.sql deleted file mode 100644 index 2857e0fce34..00000000000 --- a/pgsql/tables/llx_rights_def.sql +++ /dev/null @@ -1,35 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_rights_def.sql,v 1.7 2007/12/02 21:37:46 eldy Exp --- =========================================================================== - -create table llx_rights_def -( - id integer PRIMARY KEY, - "libelle" varchar(255), - "module" varchar(12), - "perms" varchar(50), - "subperms" varchar(50), - "type" varchar(1) CHECK (type IN ('r','w','m','d','a')) , - "bydefault" smallint DEFAULT 0 -); - diff --git a/pgsql/tables/llx_societe.key.sql b/pgsql/tables/llx_societe.key.sql deleted file mode 100644 index 9280e4d6b48..00000000000 --- a/pgsql/tables/llx_societe.key.sql +++ /dev/null @@ -1,32 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_societe.key.sql,v 1.6 2008/03/01 01:13:17 eldy Exp --- =================================================================== - - -ALTER TABLE llx_societe ADD UNIQUE uk_societe_prefix_comm(prefix_comm); -ALTER TABLE llx_societe ADD UNIQUE uk_societe_code_client(code_client); - -ALTER TABLE llx_societe ADD INDEX idx_societe_user_creat(fk_user_creat); -ALTER TABLE llx_societe ADD INDEX idx_societe_user_modif(fk_user_modif); - ---ALTER TABLE llx_societe ADD FOREIGN KEY fk_prospectlevel llx_c_prospectlevel(code); diff --git a/pgsql/tables/llx_societe.sql b/pgsql/tables/llx_societe.sql deleted file mode 100644 index 6004199e2eb..00000000000 --- a/pgsql/tables/llx_societe.sql +++ /dev/null @@ -1,76 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2000-2004 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_societe.sql,v 1.32 2008/03/01 01:13:17 eldy Exp --- ======================================================================== - -create table llx_societe -( - rowid SERIAL PRIMARY KEY, - "statut" smallint DEFAULT 0, -- statut - "parent" integer, - "tms" timestamp, - "datec" timestamp, -- creation date - "datea" timestamp, -- activation date - "nom" varchar(60), -- company name - "code_client" varchar(15), -- code client - "code_fournisseur" varchar(15), -- code founisseur - "code_compta" varchar(15), -- code compta client - "code_compta_fournisseur" varchar(15), -- code compta founisseur - "address" varchar(255), -- company adresse - "cp" varchar(10), -- zipcode - "ville" varchar(50), -- town - "fk_departement" integer DEFAULT 0, -- - "fk_pays" integer DEFAULT 0, -- - "tel" varchar(20), -- phone number - "fax" varchar(20), -- fax number - "url" varchar(255), -- - "email" varchar(128), -- - "fk_secteur" integer DEFAULT 0, -- - "fk_effectif" integer DEFAULT 0, -- - "fk_typent" integer DEFAULT 0, -- - "fk_forme_juridique" integer DEFAULT 0, -- forme juridique INSEE - "siren" varchar(16), -- IDProf1: siren ou RCS pour france - "siret" varchar(16), -- IDProf2: siret pour france - "ape" varchar(16), -- IDProf3: code ape pour france - "idprof4" varchar(16), -- IDProf4: nu pour france - "tva_intra" varchar(20), -- tva - "capital" real, -- capital de la société - "description" text, -- - "fk_stcomm" smallint DEFAULT 0, -- commercial statut - "note" text, -- - "services" smallint DEFAULT 0, -- - "prefix_comm" varchar(5), -- prefix commercial - "client" smallint DEFAULT 0, -- client 0/1/2 - "fournisseur" smallint DEFAULT 0, -- fournisseur 0/1 - "supplier_account" varchar(32), -- compte client chez un fournisseur - "fk_prospectlevel" varchar(12), -- prospect level (in llx_c_prospectlevel) - "customer_bad" smallint DEFAULT 0, -- mauvais payeur 0/1 - "customer_rate" real DEFAULT 0, -- taux fiabilié client (0 à 1) - "supplier_rate" real DEFAULT 0, -- taux fiabilié fournisseur (0 à 1) - "rubrique" varchar(255), -- champ rubrique libre - "fk_user_creat" integer, -- utilisateur qui a créé l'info - "fk_user_modif" integer, -- utilisateur qui a modifié l'info - "remise_client" real DEFAULT 0, -- remise systématique pour le client - "mode_reglement" smallint, -- mode de réglement - "cond_reglement" smallint, -- condition de réglement - "tva_assuj" smallint DEFAULT 1 -- assujéti ou non à la TVA -); diff --git a/pgsql/tables/llx_societe_adresse_livraison.sql b/pgsql/tables/llx_societe_adresse_livraison.sql deleted file mode 100644 index 1accfe9195b..00000000000 --- a/pgsql/tables/llx_societe_adresse_livraison.sql +++ /dev/null @@ -1,43 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2000-2004 Rodolphe Quiedeville --- Copyright (C) 2005-2006 Houssin Régis --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_societe_adresse_livraison.sql,v 1.8 2007/12/27 19:02:28 hregis Exp --- ======================================================================== - -create table llx_societe_adresse_livraison -( - rowid SERIAL PRIMARY KEY, - "datec" timestamp, -- creation date - "tms" timestamp, -- modification date - "label" varchar(30), -- - "fk_societe" integer DEFAULT 0, -- - "nom" varchar(60), -- company name - "address" varchar(255), -- company adresse - "cp" varchar(10), -- zipcode - "ville" varchar(50), -- town - "fk_pays" integer DEFAULT 0, -- - "tel" varchar(20), -- phone number - "fax" varchar(20), -- fax number - "note" text, -- - "fk_user_creat" integer, -- utilisateur qui a créé l'info - "fk_user_modif" integer -- utilisateur qui a modifié l'info -); \ No newline at end of file diff --git a/pgsql/tables/llx_societe_commerciaux.sql b/pgsql/tables/llx_societe_commerciaux.sql deleted file mode 100644 index dcafc6b7574..00000000000 --- a/pgsql/tables/llx_societe_commerciaux.sql +++ /dev/null @@ -1,33 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_societe_commerciaux.sql,v 1.2 2007/12/02 21:37:46 eldy Exp --- ======================================================================== - - -create table llx_societe_commerciaux -( - rowid SERIAL PRIMARY KEY, - "fk_soc" integer, - "fk_user" integer, - UNIQUE(fk_soc, fk_user) -); - diff --git a/pgsql/tables/llx_societe_consult.sql b/pgsql/tables/llx_societe_consult.sql deleted file mode 100644 index 7c07cc6c3be..00000000000 --- a/pgsql/tables/llx_societe_consult.sql +++ /dev/null @@ -1,35 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_societe_consult.sql,v 1.4 2007/12/02 21:37:46 eldy Exp --- ======================================================================== - --- --- Le type InnoDB n'est pas nécessaire pour cette table --- -create table llx_societe_consult -( - "fk_soc" integer, - "fk_user" integer, - "datec" timestamp, - "action" varchar(1) CHECK (action IN ('w','r')) -); - diff --git a/pgsql/tables/llx_societe_log.sql b/pgsql/tables/llx_societe_log.sql deleted file mode 100644 index 44795e7c6c4..00000000000 --- a/pgsql/tables/llx_societe_log.sql +++ /dev/null @@ -1,35 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2002-2003 Rodolphe Quiedeville --- Copyright (C) 2007 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_societe_log.sql,v 1.3 2007/12/16 20:41:15 eldy Exp --- ======================================================================== - -create table llx_societe_log -( - id SERIAL PRIMARY KEY, - "datel" timestamp, - "fk_soc" integer, -- Ne pas mettre de controle d'integrite sur les tables de logs - "fk_statut" integer, -- Ne pas mettre de controle d'integrite sur les tables de logs - "fk_user" integer, -- Ne pas mettre de controle d'integrite sur les tables de logs - "author" varchar(30), - "label" varchar(128) -); diff --git a/pgsql/tables/llx_societe_prices.sql b/pgsql/tables/llx_societe_prices.sql deleted file mode 100644 index cb22bc094d5..00000000000 --- a/pgsql/tables/llx_societe_prices.sql +++ /dev/null @@ -1,33 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2007 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_societe_prices.sql,v 1.2 2007/12/02 21:37:47 eldy Exp --- ======================================================================== - -create table llx_societe_prices -( - rowid SERIAL PRIMARY KEY, - "fk_soc" integer DEFAULT 0, - "tms" timestamp NOT NULL, - "datec" timestamp, - "fk_user_author" integer, - "price_level" smallint DEFAULT 1 -); diff --git a/pgsql/tables/llx_societe_remise.sql b/pgsql/tables/llx_societe_remise.sql deleted file mode 100644 index 541febd9002..00000000000 --- a/pgsql/tables/llx_societe_remise.sql +++ /dev/null @@ -1,38 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ======================================================================== --- Copyright (C) 2000-2004 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_societe_remise.sql,v 1.5 2007/12/02 21:37:47 eldy Exp --- --- Historique evolution de la remise relative des tiers --- ======================================================================== - - -create table llx_societe_remise -( - rowid SERIAL PRIMARY KEY, - "fk_soc" integer NOT NULL, - "tms" timestamp, - "datec" timestamp, -- creation date - "fk_user_author" integer, -- utilisateur qui a créé l'info - "remise_client" real DEFAULT 0, -- remise systématique pour le client - "note" text -); - diff --git a/pgsql/tables/llx_societe_remise_except.key.sql b/pgsql/tables/llx_societe_remise_except.key.sql deleted file mode 100644 index 4f2a205c216..00000000000 --- a/pgsql/tables/llx_societe_remise_except.key.sql +++ /dev/null @@ -1,44 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2004 Rodolphe Quiedeville --- Copyright (C) 2005-2007 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_societe_remise_except.key.sql,v 1.8 2007/12/02 21:37:47 eldy Exp --- --- Remises exceptionnelles --- --- ============================================================================ - - -ALTER TABLE llx_societe_remise_except ADD INDEX idx_societe_remise_except_fk_user (fk_user); -ALTER TABLE llx_societe_remise_except ADD INDEX idx_societe_remise_except_fk_soc (fk_soc); -ALTER TABLE llx_societe_remise_except ADD INDEX idx_societe_remise_except_fk_facture_line (fk_facture_line); -ALTER TABLE llx_societe_remise_except ADD INDEX idx_societe_remise_except_fk_facture (fk_facture); -ALTER TABLE llx_societe_remise_except ADD INDEX idx_societe_remise_except_fk_facture_source (fk_facture_source); - - -ALTER TABLE llx_societe_remise_except ADD CONSTRAINT fk_societe_remise_fk_user FOREIGN KEY (fk_user) REFERENCES llx_user (rowid); -ALTER TABLE llx_societe_remise_except ADD CONSTRAINT fk_societe_remise_fk_soc FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid); -ALTER TABLE llx_societe_remise_except ADD CONSTRAINT fk_societe_remise_fk_facture_line FOREIGN KEY (fk_facture_line) REFERENCES llx_facturedet (rowid); -ALTER TABLE llx_societe_remise_except ADD CONSTRAINT fk_societe_remise_fk_facture FOREIGN KEY (fk_facture) REFERENCES llx_facture (rowid); -ALTER TABLE llx_societe_remise_except ADD CONSTRAINT fk_societe_remise_fk_facture_source FOREIGN KEY (fk_facture_source) REFERENCES llx_facture (rowid); - - - diff --git a/pgsql/tables/llx_societe_remise_except.sql b/pgsql/tables/llx_societe_remise_except.sql deleted file mode 100644 index 088e4108c99..00000000000 --- a/pgsql/tables/llx_societe_remise_except.sql +++ /dev/null @@ -1,42 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2004 Rodolphe Quiedeville --- Copyright (C) 2006-2007 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_societe_remise_except.sql,v 1.7 2007/12/02 17:59:07 eldy Exp --- --- Remises exceptionnelles --- ============================================================================ - -create table llx_societe_remise_except -( - rowid SERIAL PRIMARY KEY, - "fk_soc" integer NOT NULL, -- client - "datec" timestamp, - "amount_ht" real(24,8) NOT NULL, - "amount_tva" real(24,8) DEFAULT 0 NOT NULL, - "amount_ttc" real(24,8) DEFAULT 0 NOT NULL, - "tva_tx" real(6,3) DEFAULT 0 NOT NULL, - "fk_user" integer NOT NULL, - "fk_facture_line" integer, - "fk_facture" integer, - "fk_facture_source" integer, - "description" varchar(255) NOT NULL -); diff --git a/pgsql/tables/llx_societe_rib.sql b/pgsql/tables/llx_societe_rib.sql deleted file mode 100644 index 670ecd851da..00000000000 --- a/pgsql/tables/llx_societe_rib.sql +++ /dev/null @@ -1,44 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================= --- Copyright (C) 2000-2004 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_societe_rib.sql,v 1.3 2007/12/02 21:37:47 eldy Exp --- ============================================================================= - - - -create table llx_societe_rib -( - rowid SERIAL PRIMARY KEY, - "fk_soc" integer NOT NULL, - "datec" timestamp, - "tms" timestamp, - "label" varchar(30), - "bank" varchar(255), - "code_banque" varchar(7), - "code_guichet" varchar(6), - "number" varchar(255), - "cle_rib" varchar(5), - "bic" varchar(10), - "iban_prefix" varchar(5), - "domiciliation" varchar(255), - "proprio" varchar(60), - "adresse_proprio" varchar(255) -); diff --git a/pgsql/tables/llx_socpeople.key.sql b/pgsql/tables/llx_socpeople.key.sql deleted file mode 100644 index d08848a8dfb..00000000000 --- a/pgsql/tables/llx_socpeople.key.sql +++ /dev/null @@ -1,30 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2005-2007 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_socpeople.key.sql,v 1.7 2007/12/02 21:37:47 eldy Exp --- ============================================================================ - - -ALTER TABLE llx_socpeople ADD INDEX idx_socpeople_fk_soc (fk_soc); -ALTER TABLE llx_socpeople ADD INDEX idx_socpeople_fk_user_creat (fk_user_creat); - -ALTER TABLE llx_socpeople ADD CONSTRAINT fk_socpeople_fk_soc FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid); -ALTER TABLE llx_socpeople ADD CONSTRAINT fk_socpeople_user_creat_user_rowid FOREIGN KEY (fk_user_creat) REFERENCES llx_user (rowid); diff --git a/pgsql/tables/llx_socpeople.sql b/pgsql/tables/llx_socpeople.sql deleted file mode 100644 index dc911b8f5c0..00000000000 --- a/pgsql/tables/llx_socpeople.sql +++ /dev/null @@ -1,51 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2001-2004 Rodolphe Quiedeville --- Copyright (C) 2008 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_socpeople.sql,v 1.19 2008/03/30 22:25:42 eldy Exp --- ============================================================================ - -create table llx_socpeople -( - rowid SERIAL PRIMARY KEY, - "datec" timestamp, - "tms" timestamp, - "fk_soc" integer, -- lien vers la societe - "civilite" varchar(6), - "name" varchar(50), - "firstname" varchar(50), - "address" varchar(255), - "cp" varchar(25), - "ville" varchar(255), - "fk_pays" integer DEFAULT 0, - "birthday" date, - "poste" varchar(80), - "phone" varchar(30), - "phone_perso" varchar(30), - "phone_mobile" varchar(30), - "fax" varchar(30), - "email" varchar(255), - "jabberid" varchar(255), - "priv" smallint NOT NULL DEFAULT 0, - "fk_user_creat" integer DEFAULT 0, -- user qui a créé l'enregistrement - "fk_user_modif" integer, - "note" text -); diff --git a/pgsql/tables/llx_stock_mouvement.key.sql b/pgsql/tables/llx_stock_mouvement.key.sql deleted file mode 100644 index 64bae4f2e90..00000000000 --- a/pgsql/tables/llx_stock_mouvement.key.sql +++ /dev/null @@ -1,29 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2002-2004 Rodolphe Quiedeville --- Copyright (C) 2004-2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_stock_mouvement.key.sql,v 1.1 2008/07/02 22:37:51 eldy Exp --- ============================================================================ - - -ALTER TABLE llx_stock_mouvement ADD INDEX idx_stock_mouvement_fk_product (fk_product); - -ALTER TABLE llx_stock_mouvement ADD INDEX idx_stock_mouvement_fk_entrepot (fk_entrepot); diff --git a/pgsql/tables/llx_stock_mouvement.sql b/pgsql/tables/llx_stock_mouvement.sql deleted file mode 100644 index 6a675e3fb0e..00000000000 --- a/pgsql/tables/llx_stock_mouvement.sql +++ /dev/null @@ -1,37 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_stock_mouvement.sql,v 1.8 2008/07/02 22:37:52 eldy Exp --- ============================================================================ - -create table llx_stock_mouvement -( - rowid SERIAL PRIMARY KEY, - "tms" timestamp, - "datem" timestamp, - "fk_product" integer NOT NULL, - "fk_entrepot" integer NOT NULL, - "value" integer, - "price" float(13,4) DEFAULT 0, - "type_mouvement" smallint, - "fk_user_author" integer -); - diff --git a/pgsql/tables/llx_stock_valorisation.key.sql b/pgsql/tables/llx_stock_valorisation.key.sql deleted file mode 100644 index 1b12f4f8725..00000000000 --- a/pgsql/tables/llx_stock_valorisation.key.sql +++ /dev/null @@ -1,28 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2002-2004 Rodolphe Quiedeville --- Copyright (C) 2004-2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_stock_valorisation.key.sql,v 1.1 2008/07/02 22:37:52 eldy Exp --- ============================================================================ - - -ALTER TABLE llx_stock_valorisation ADD INDEX idx_stock_valorisation_fk_product (fk_product); - diff --git a/pgsql/tables/llx_stock_valorisation.sql b/pgsql/tables/llx_stock_valorisation.sql deleted file mode 100644 index 80c9c963c5e..00000000000 --- a/pgsql/tables/llx_stock_valorisation.sql +++ /dev/null @@ -1,39 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2006 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_stock_valorisation.sql,v 1.3 2008/07/02 22:37:52 eldy Exp --- ============================================================================ - -create table llx_stock_valorisation -( - rowid SERIAL PRIMARY KEY, - "tms" timestamp, -- date technique mise à jour automatiquement - "date_valo" timestamp, -- date de valorisation - "fk_product" integer NOT NULL, -- id du produit concerne par l'operation - "qty_ope" float(9,3), -- quantité de l'operation - "price_ope" float(12,4), -- prix unitaire du produit concerne par l'operation - "valo_ope" float(12,4), -- valorisation de l'operation - "price_pmp" float(12,4), -- valeur PMP de l'operation - "qty_stock" float(9,3) DEFAULT 0, -- qunatite en stock - "valo_pmp" float(12,4), -- valorisation du stock en PMP - "fk_stock_mouvement" integer -- id du mouvement de stock -); - diff --git a/pgsql/tables/llx_surveys_answers.sql b/pgsql/tables/llx_surveys_answers.sql deleted file mode 100644 index 5eb5ff89cd6..00000000000 --- a/pgsql/tables/llx_surveys_answers.sql +++ /dev/null @@ -1,34 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2007 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_surveys_answers.sql,v 1.2 2007/11/08 18:36:24 eldy Exp --- =========================================================================== - -CREATE TABLE llx_surveys_answers ( - rowid SERIAL PRIMARY KEY, - "fk_question" integer NOT NULL, - "ip_adresse" varchar(15) NOT NULL default '', - "datec" date NOT NULL default '0000-00-00', - "rep1" decimal(6,0) default NULL, - "rep2" decimal(6,0) default NULL, - "rep3" decimal(6,0) default NULL, - "rep4" decimal(6,0) default NULL -); diff --git a/pgsql/tables/llx_surveys_answers_summary.key.sql b/pgsql/tables/llx_surveys_answers_summary.key.sql deleted file mode 100644 index ca13d16dbd1..00000000000 --- a/pgsql/tables/llx_surveys_answers_summary.key.sql +++ /dev/null @@ -1,25 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2007 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_surveys_answers_summary.key.sql,v 1.1 2007/11/08 18:36:25 eldy Exp --- =========================================================================== - - diff --git a/pgsql/tables/llx_surveys_answers_summary.sql b/pgsql/tables/llx_surveys_answers_summary.sql deleted file mode 100644 index cdcf1bb0ca5..00000000000 --- a/pgsql/tables/llx_surveys_answers_summary.sql +++ /dev/null @@ -1,24 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2007 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_surveys_answers_summary.sql,v 1.2 2007/11/08 18:36:25 eldy Exp --- =========================================================================== - diff --git a/pgsql/tables/llx_surveys_questions.sql b/pgsql/tables/llx_surveys_questions.sql deleted file mode 100644 index 009669cdd08..00000000000 --- a/pgsql/tables/llx_surveys_questions.sql +++ /dev/null @@ -1,35 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2007 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_surveys_questions.sql,v 1.2 2007/11/08 18:36:25 eldy Exp --- =========================================================================== - -CREATE TABLE llx_surveys_questions ( - rowid SERIAL PRIMARY KEY, - "type_question" decimal(1,0) NOT NULL default '0', - "group_question" varchar(16) NOT NULL default 'NONE', - "status" decimal(1,0) NOT NULL default '0', - "lib" varchar(255) NOT NULL default '', - "lib_rep1" varchar(100) NOT NULL default '', - "lib_rep2" varchar(100) default NULL, - "lib_rep3" varchar(100) default NULL, - "lib_rep4" varchar(100) default NULL -); diff --git a/pgsql/tables/llx_texts.sql b/pgsql/tables/llx_texts.sql deleted file mode 100644 index 7ad2c16b4f8..00000000000 --- a/pgsql/tables/llx_texts.sql +++ /dev/null @@ -1,40 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2007 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_texts.sql,v 1.1 2007/12/02 15:55:17 eldy Exp --- ============================================================================ - - - -create table llx_models -( - rowid SERIAL PRIMARY KEY, - "module" varchar(32), -- Nom du module en rapport avec le modele - "typemodele" varchar(32), -- Type du modele - "sortorder" smallint, -- Ordre affichage - - "private" smallint DEFAULT 0 NOT NULL, -- Modele publique ou prive - "fk_user" integer, -- Id utilisateur si modele prive, sinon null - "title" varchar(128), -- Titre du modele - "filename" varchar(128), -- Nom fichier si modele fichier - "content" text, -- Texte si modele texte - "tms" timestamp -); diff --git a/pgsql/tables/llx_transaction_bplc.sql b/pgsql/tables/llx_transaction_bplc.sql deleted file mode 100644 index fc77a78c3c6..00000000000 --- a/pgsql/tables/llx_transaction_bplc.sql +++ /dev/null @@ -1,38 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2001-2002 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_transaction_bplc.sql,v 1.5 2007/12/02 21:37:47 eldy Exp --- =================================================================== - - -create table llx_transaction_bplc -( - rowid SERIAL PRIMARY KEY, - "tms" timestamp, - "ipclient" varchar(20), - "num_transaction" varchar(10), - "date_transaction" varchar(10), - "heure_transaction" varchar(10), - "num_autorisation" varchar(10), - "cle_acceptation" varchar(5), - "code_retour" integer, - "ref_commande" integer -); diff --git a/pgsql/tables/llx_tva.sql b/pgsql/tables/llx_tva.sql deleted file mode 100644 index 603f40ed6c9..00000000000 --- a/pgsql/tables/llx_tva.sql +++ /dev/null @@ -1,37 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2002-2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_tva.sql,v 1.9 2008/04/03 19:35:48 eldy Exp --- =================================================================== - -create table llx_tva -( - rowid SERIAL PRIMARY KEY, - "tms" timestamp, - "datep" date, -- date de paiement - "datev" date, -- date de valeur - "amount" real NOT NULL DEFAULT 0, - "label" varchar(255), - "note" text, - "fk_bank" integer, - "fk_user_creat" integer, -- utilisateur qui a créé l'info - "fk_user_modif" integer -- utilisateur qui a modifié l'info -); diff --git a/pgsql/tables/llx_user.key.sql b/pgsql/tables/llx_user.key.sql deleted file mode 100644 index 1e3254f68d7..00000000000 --- a/pgsql/tables/llx_user.key.sql +++ /dev/null @@ -1,33 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2003 Rodolphe Quiedeville --- Copyright (C) 2006-2007 Laurent Destailleur --- Copyright (C) 2007 Regis Houssin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_user.key.sql,v 1.5 2007/12/02 21:37:47 eldy Exp --- =========================================================================== - - -ALTER TABLE llx_user ADD UNIQUE INDEX uk_user_login (login); - -ALTER TABLE llx_user ADD INDEX uk_user_fk_societe (fk_societe); - -ALTER TABLE llx_user ADD UNIQUE INDEX uk_user_fk_socpeople (fk_socpeople); -ALTER TABLE llx_user ADD UNIQUE INDEX uk_user_fk_member (fk_member); diff --git a/pgsql/tables/llx_user.sql b/pgsql/tables/llx_user.sql deleted file mode 100644 index 12cbf7c72e8..00000000000 --- a/pgsql/tables/llx_user.sql +++ /dev/null @@ -1,58 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2001-2003 Rodolphe Quiedeville --- Copyright (C) 2006-2007 Laurent Destailleur --- Copyright (C) 2007 Regis Houssin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_user.sql,v 1.26 2007/11/08 18:36:25 eldy Exp --- =========================================================================== - -create table llx_user -( - rowid SERIAL PRIMARY KEY, - "datec" timestamp, - "tms" timestamp, - "login" varchar(24) NOT NULL, - "pass" varchar(32), - "pass_crypted" varchar(128), - "pass_temp" varchar(32), -- temporary password when asked for forget password - "name" varchar(50), - "firstname" varchar(50), - "office_phone" varchar(20), - "office_fax" varchar(20), - "user_mobile" varchar(20), - "email" varchar(255), - "admin" smallint DEFAULT 0, - "webcal_login" varchar(25), - "phenix_login" varchar(25), - "phenix_pass" varchar(128), - "module_comm" smallint DEFAULT 1, - "module_compta" smallint DEFAULT 1, - "fk_societe" integer, - "fk_socpeople" integer, - "fk_member" integer, - "note" text DEFAULT NULL, - "datelastlogin" timestamp, - "datepreviouslogin" timestamp, - "egroupware_id" integer, - "ldap_sid" varchar(255) DEFAULT NULL, - "statut" smallint DEFAULT 1, - "lang" varchar(6) -); diff --git a/pgsql/tables/llx_user_alert.sql b/pgsql/tables/llx_user_alert.sql deleted file mode 100644 index 84fbbc8ac8b..00000000000 --- a/pgsql/tables/llx_user_alert.sql +++ /dev/null @@ -1,32 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2004 Rodolphe Quiedeville --- Copyright (C) 2004 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_user_alert.sql,v 1.2 2007/12/02 21:37:48 eldy Exp --- ============================================================================ - -create table llx_user_alert -( - rowid SERIAL PRIMARY KEY, - "type" integer, - "fk_contact" integer, -- pointe sur llx_socpeople - "fk_user" integer -); diff --git a/pgsql/tables/llx_user_clicktodial.sql b/pgsql/tables/llx_user_clicktodial.sql deleted file mode 100644 index 0b8ed858094..00000000000 --- a/pgsql/tables/llx_user_clicktodial.sql +++ /dev/null @@ -1,35 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_user_clicktodial.sql,v 1.2 2007/12/02 21:37:48 eldy Exp --- =========================================================================== - --- --- Stockage des informations relatives au click to dial --- - -create table llx_user_clicktodial -( - fk_user integer PRIMARY KEY, - "login" varchar(32), - "pass" varchar(64), - "poste" varchar(20) -); diff --git a/pgsql/tables/llx_user_entrepot.sql b/pgsql/tables/llx_user_entrepot.sql deleted file mode 100644 index 490ca15da93..00000000000 --- a/pgsql/tables/llx_user_entrepot.sql +++ /dev/null @@ -1,32 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2006 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_user_entrepot.sql,v 1.2 2007/12/02 21:37:48 eldy Exp --- ============================================================================ - -create table llx_user_entrepot -( - rowid SERIAL PRIMARY KEY, - "fk_entrepot" integer, -- pointe sur llx_entrepot - "fk_user" integer, -- pointe sur llx_user - "consult" int2, - "send" int2 -); diff --git a/pgsql/tables/llx_user_param.sql b/pgsql/tables/llx_user_param.sql deleted file mode 100644 index 722ee128694..00000000000 --- a/pgsql/tables/llx_user_param.sql +++ /dev/null @@ -1,36 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2004 Rodolphe Quiedeville --- Copyright (C) 2004 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_user_param.sql,v 1.5 2007/12/02 21:37:48 eldy Exp --- =========================================================================== - - -create table llx_user_param -( - "fk_user" integer NOT NULL, - "page" varchar(255) NOT NULL, - "param" varchar(64) NOT NULL, - "value" varchar(255) NOT NULL, - UNIQUE(fk_user,page,param) -); - -CREATE INDEX idx_llx_user_param_fk_user_page_param ON llx_user_param (fk_user,page,param); diff --git a/pgsql/tables/llx_user_rights.key.sql b/pgsql/tables/llx_user_rights.key.sql deleted file mode 100644 index b7355dbd193..00000000000 --- a/pgsql/tables/llx_user_rights.key.sql +++ /dev/null @@ -1,31 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2003 Rodolphe Quiedeville --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_user_rights.key.sql,v 1.6 2007/12/02 21:37:48 eldy Exp --- =========================================================================== - - --- Supprimme orhpelins pour permettre montée de la clé --- V4 DELETE llx_user_rights FROM llx_user_rights LEFT JOIN llx_user ON llx_user_rights.fk_user = llx_user.rowid WHERE llx_user.rowid IS NULL; - - -ALTER TABLE llx_user_rights ADD CONSTRAINT fk_user_rights_fk_user_user FOREIGN KEY (fk_user) REFERENCES llx_user (rowid); diff --git a/pgsql/tables/llx_user_rights.sql b/pgsql/tables/llx_user_rights.sql deleted file mode 100644 index ad74d535df5..00000000000 --- a/pgsql/tables/llx_user_rights.sql +++ /dev/null @@ -1,43 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_user_rights.sql,v 1.6 2007/12/02 21:37:48 eldy Exp --- =========================================================================== - - -CREATE TABLE llx_surveys_answers_summary ( - fk_question integer PRIMARY KEY, - "nb_rep1" decimal(10,0) NOT NULL default '0', - "nb_rep2" decimal(10,0) default NULL, - "nb_rep3" decimal(10,0) default NULL, - "nb_rep4" decimal(10,0) default NULL, - "tot_rep1" decimal(10,0) NOT NULL default '0', - "tot_rep2" decimal(10,0) default NULL, - "tot_rep3" decimal(10,0) default NULL, - "tot_rep4" decimal(10,0) default NULL -")""create" table llx_user_rights -( - rowid SERIAL PRIMARY KEY, - "fk_user" integer NOT NULL, - "fk_id" integer NOT NULL, - UNIQUE(fk_user,fk_id) -); - diff --git a/pgsql/tables/llx_usergroup.sql b/pgsql/tables/llx_usergroup.sql deleted file mode 100644 index f37dddae2dd..00000000000 --- a/pgsql/tables/llx_usergroup.sql +++ /dev/null @@ -1,34 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2005 Rodolphe Quiedeville --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_usergroup.sql,v 1.3 2007/12/02 21:37:48 eldy Exp --- =========================================================================== - - -create table llx_usergroup -( - rowid SERIAL PRIMARY KEY, - "datec" timestamp, - "tms" timestamp, - "nom" varchar(255) NOT NULL UNIQUE, - "note" text -); diff --git a/pgsql/tables/llx_usergroup_rights.key.sql b/pgsql/tables/llx_usergroup_rights.key.sql deleted file mode 100644 index cab1983bcbd..00000000000 --- a/pgsql/tables/llx_usergroup_rights.key.sql +++ /dev/null @@ -1,30 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_usergroup_rights.key.sql,v 1.7 2007/12/02 21:37:48 eldy Exp --- =========================================================================== - - --- Supprime orhpelins pour permettre montée de la clé --- V4 DELETE llx_usergroup_rights FROM llx_usergroup_rights LEFT JOIN llx_usergroup ON llx_usergroup_rights.fk_usergroup = llx_usergroup.rowid WHERE llx_usergroup.rowid IS NULL; - - -ALTER TABLE llx_usergroup_rights ADD CONSTRAINT fk_usergroup_rights_fk_usergroup FOREIGN KEY (fk_usergroup) REFERENCES llx_usergroup (rowid); diff --git a/pgsql/tables/llx_usergroup_rights.sql b/pgsql/tables/llx_usergroup_rights.sql deleted file mode 100644 index bc00e87c49f..00000000000 --- a/pgsql/tables/llx_usergroup_rights.sql +++ /dev/null @@ -1,35 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_usergroup_rights.sql,v 1.2 2007/12/02 21:37:48 eldy Exp --- =========================================================================== - - -create table llx_usergroup_rights -( - rowid SERIAL PRIMARY KEY, - "fk_usergroup" integer NOT NULL, - "fk_id" integer NOT NULL, - UNIQUE(fk_usergroup,fk_id) -); - -CREATE INDEX idx_llx_usergroup_rights_fk_usergroup_fk_id ON llx_usergroup_rights (fk_usergroup,fk_id); - diff --git a/pgsql/tables/llx_usergroup_user.sql b/pgsql/tables/llx_usergroup_user.sql deleted file mode 100644 index 27cc9cb6d00..00000000000 --- a/pgsql/tables/llx_usergroup_user.sql +++ /dev/null @@ -1,34 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- ============================================================================ --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_usergroup_user.sql,v 1.2 2007/12/02 21:37:48 eldy Exp --- =========================================================================== - - -create table llx_usergroup_user -( - rowid SERIAL PRIMARY KEY, - "fk_user" integer NOT NULL, - "fk_usergroup" integer NOT NULL, - UNIQUE(fk_user,fk_usergroup) -); - -CREATE INDEX idx_llx_usergroup_user_fk_user_fk_usergroup ON llx_usergroup_user (fk_user,fk_usergroup); diff --git a/pgsql/tables/llx_voyage.sql b/pgsql/tables/llx_voyage.sql deleted file mode 100644 index 72503459368..00000000000 --- a/pgsql/tables/llx_voyage.sql +++ /dev/null @@ -1,48 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2001-2002 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- insert into llx_voyage (date_depart, date_arrivee, amount, depart, arrivee, fk_reduc) --- values ('2002-04-21 12:05','2002-04-21 15:25',26.8,'Paris','Auray',1) - --- insert into llx_voyage (date_depart, date_arrivee, amount, depart, arrivee, fk_reduc) --- values ('2002-04-23 15:42','2002-04-23 19:10',26.8,'Auray','Paris',1) --- --- Id: llx_voyage.sql,v 1.6 2007/12/02 21:37:48 eldy Exp --- =================================================================== - - -create table llx_voyage -( - rowid SERIAL PRIMARY KEY, - "datec" timestamp, - "dateo" date, -- date operation - "date_depart" timestamp, -- date du voyage - "date_arrivee" timestamp, -- date du voyage - "amount" real NOT NULL DEFAULT 0, -- prix du billet - "reduction" real NOT NULL DEFAULT 0, -- montant de la reduction obtenue - "depart" varchar(255), - "arrivee" varchar(255), - "fk_type" smallint, -- Train, Avion, Bateaux - "fk_reduc" integer, - "distance" integer, -- distance en kilometre - "dossier" varchar(50), -- numero de dossier - "note" text -); diff --git a/pgsql/tables/llx_voyage_reduc.sql b/pgsql/tables/llx_voyage_reduc.sql deleted file mode 100644 index c2ce2bdc0b8..00000000000 --- a/pgsql/tables/llx_voyage_reduc.sql +++ /dev/null @@ -1,37 +0,0 @@ --- Generated by dolibarr_mysql2pgsql --- (c) 2004, PostgreSQL Inc. --- (c) 2005, Laurent Destailleur. - --- =================================================================== --- Copyright (C) 2001-2002 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Id: llx_voyage_reduc.sql,v 1.5 2007/12/02 21:37:48 eldy Exp --- =================================================================== - -create table llx_voyage_reduc -( - rowid SERIAL PRIMARY KEY, - "datec" timestamp, - "datev" date, -- date de valeur - "date_debut" date, -- date operation - "date_fin" date, - "amount" real NOT NULL DEFAULT 0, - "label" varchar(255), - "numero" varchar(255), - "fk_type" smallint, -- Train, Avion, Bateaux - "note" text -);