From cfbbe15c5c22a75e4f8e0554c08dcb108af2a784 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 3 Dec 2004 10:53:20 +0000 Subject: [PATCH] Nouveau fichier & Copyright --- .../sql/llx_telephonie_societe_ligne.key.sql | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 htdocs/telephonie/sql/llx_telephonie_societe_ligne.key.sql diff --git a/htdocs/telephonie/sql/llx_telephonie_societe_ligne.key.sql b/htdocs/telephonie/sql/llx_telephonie_societe_ligne.key.sql new file mode 100644 index 00000000000..c368d601fea --- /dev/null +++ b/htdocs/telephonie/sql/llx_telephonie_societe_ligne.key.sql @@ -0,0 +1,49 @@ +-- ======================================================================== +-- 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$ +-- $Source$ +-- +-- ======================================================================== +-- +-- Statut des lignes +-- +-- 0 a commander +-- 1 commandée +-- 2 recue +-- 3 probleme +-- + +ALTER TABLE llx_telephonie_societe_ligne ADD INDEX (fk_fournisseur); +ALTER TABLE llx_telephonie_societe_ligne ADD INDEX (fk_client_comm); +ALTER TABLE llx_telephonie_societe_ligne ADD INDEX (fk_soc); +ALTER TABLE llx_telephonie_societe_ligne ADD INDEX (fk_soc_facture); +ALTER TABLE llx_telephonie_societe_ligne ADD INDEX (fk_user_creat); +ALTER TABLE llx_telephonie_societe_ligne ADD INDEX (fk_user_commande); +ALTER TABLE llx_telephonie_societe_ligne ADD INDEX (fk_commercial); +ALTER TABLE llx_telephonie_societe_ligne ADD INDEX (fk_concurrent); + +ALTER TABLE llx_telephonie_societe_ligne ADD FOREIGN KEY (fk_fournisseur) REFERENCES llx_telephonie_fournisseur (rowid); +ALTER TABLE llx_telephonie_societe_ligne ADD FOREIGN KEY (fk_client_comm) REFERENCES llx_societe(idp); +ALTER TABLE llx_telephonie_societe_ligne ADD FOREIGN KEY (fk_soc) REFERENCES llx_societe(idp); +ALTER TABLE llx_telephonie_societe_ligne ADD FOREIGN KEY (fk_soc_facture) REFERENCES llx_societe(idp); +ALTER TABLE llx_telephonie_societe_ligne ADD FOREIGN KEY (fk_user_creat) REFERENCES llx_user(rowid); +ALTER TABLE llx_telephonie_societe_ligne ADD FOREIGN KEY (fk_user_commande) REFERENCES llx_user(rowid); +ALTER TABLE llx_telephonie_societe_ligne ADD FOREIGN KEY (fk_commercial) REFERENCES llx_user(rowid); +ALTER TABLE llx_telephonie_societe_ligne ADD FOREIGN KEY (fk_concurrent) REFERENCES llx_telephonie_concurrents (rowid); + +