From a92fecede57f1bec47533c122289b1fc0b6d8535 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 18 Apr 2005 07:55:04 +0000 Subject: [PATCH] Nouveau fichier --- .../sql/llx_telephonie_commande_ligne.key.sql | 27 ++++++++++++++++++ .../sql/llx_telephonie_commande_ligne.sql | 28 +++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 htdocs/telephonie/sql/llx_telephonie_commande_ligne.key.sql create mode 100644 htdocs/telephonie/sql/llx_telephonie_commande_ligne.sql diff --git a/htdocs/telephonie/sql/llx_telephonie_commande_ligne.key.sql b/htdocs/telephonie/sql/llx_telephonie_commande_ligne.key.sql new file mode 100644 index 00000000000..5d538f01aed --- /dev/null +++ b/htdocs/telephonie/sql/llx_telephonie_commande_ligne.key.sql @@ -0,0 +1,27 @@ +-- ======================================================================== +-- 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$ +-- $Source$ +-- +-- ======================================================================== + +ALTER TABLE llx_telephonie_commande_ligne ADD INDEX (fk_ligne); +ALTER TABLE llx_telephonie_commande_ligne ADD INDEX (fk_commande); + +ALTER TABLE llx_telephonie_commande_ligne ADD FOREIGN KEY (fk_ligne) REFERENCES llx_telephonie_societe_ligne (rowid); +ALTER TABLE llx_telephonie_commande_ligne ADD FOREIGN KEY (fk_commande) REFERENCES llx_telephonie_commande (rowid); diff --git a/htdocs/telephonie/sql/llx_telephonie_commande_ligne.sql b/htdocs/telephonie/sql/llx_telephonie_commande_ligne.sql new file mode 100644 index 00000000000..769d340d279 --- /dev/null +++ b/htdocs/telephonie/sql/llx_telephonie_commande_ligne.sql @@ -0,0 +1,28 @@ +-- ======================================================================== +-- 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$ +-- $Source$ +-- +-- ======================================================================== +-- +create table llx_telephonie_commande_ligne ( + rowid integer AUTO_INCREMENT PRIMARY KEY, + fk_ligne integer NOT NULL, + fk_commande integer NOT NULL + +)type=innodb;