From f08dd65d6515c4204a8b4ece2223ccd8c0db74aa Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 8 Apr 2005 07:47:48 +0000 Subject: [PATCH] Nouveau fichier --- .../llx_telephonie_adsl_fournisseur.key.sql | 30 ++++++++++++++ .../sql/llx_telephonie_adsl_fournisseur.sql | 29 ++++++++++++++ .../sql/llx_telephonie_adsl_ligne.sql | 39 +++++++++++++++++++ .../sql/llx_telephonie_adsl_ligne_statut.sql | 36 +++++++++++++++++ .../sql/llx_telephonie_adsl_type.sql | 28 +++++++++++++ 5 files changed, 162 insertions(+) create mode 100644 htdocs/telephonie/sql/llx_telephonie_adsl_fournisseur.key.sql create mode 100644 htdocs/telephonie/sql/llx_telephonie_adsl_fournisseur.sql create mode 100644 htdocs/telephonie/sql/llx_telephonie_adsl_ligne.sql create mode 100644 htdocs/telephonie/sql/llx_telephonie_adsl_ligne_statut.sql create mode 100644 htdocs/telephonie/sql/llx_telephonie_adsl_type.sql diff --git a/htdocs/telephonie/sql/llx_telephonie_adsl_fournisseur.key.sql b/htdocs/telephonie/sql/llx_telephonie_adsl_fournisseur.key.sql new file mode 100644 index 00000000000..7d10d1fd489 --- /dev/null +++ b/htdocs/telephonie/sql/llx_telephonie_adsl_fournisseur.key.sql @@ -0,0 +1,30 @@ +-- ============================================================================ +-- 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$ +-- $Source$ +-- +-- ============================================================================ + +-- +-- +ALTER TABLE llx_telephonie_adsl_fournisseur ADD INDEX (fk_soc); +-- +-- +ALTER TABLE llx_telephonie_adsl_fournisseur ADD FOREIGN KEY (fk_soc) REFERENCES llx_societe (idp); + diff --git a/htdocs/telephonie/sql/llx_telephonie_adsl_fournisseur.sql b/htdocs/telephonie/sql/llx_telephonie_adsl_fournisseur.sql new file mode 100644 index 00000000000..06212d9c04e --- /dev/null +++ b/htdocs/telephonie/sql/llx_telephonie_adsl_fournisseur.sql @@ -0,0 +1,29 @@ +-- ======================================================================== +-- 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$ +-- +-- ======================================================================== + +create table llx_telephonie_adsl_fournisseur ( + rowid integer AUTO_INCREMENT PRIMARY KEY, + fk_soc integer NOT NULL, + email_commande varchar(255), + commande_active tinyint default 0 + +)type=innodb; diff --git a/htdocs/telephonie/sql/llx_telephonie_adsl_ligne.sql b/htdocs/telephonie/sql/llx_telephonie_adsl_ligne.sql new file mode 100644 index 00000000000..1489906455d --- /dev/null +++ b/htdocs/telephonie/sql/llx_telephonie_adsl_ligne.sql @@ -0,0 +1,39 @@ +-- ======================================================================== +-- 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$ +-- +-- ======================================================================== + +create table llx_telephonie_adsl_ligne ( + rowid integer AUTO_INCREMENT PRIMARY KEY, + fk_client integer NOT NULL, + fk_client_install integer NOT NULL, + fk_client_facture integer NOT NULL, + numero_ligne varchar(20) NOT NULL, + login varchar(255), + ip varchar(20), + password varchar(50), + fk_fournisseur integer, + fk_type integer NOT NULL, + fk_commercial integer NOT NULL, + fk_user_creat integer NOT NULL, + statut smallint DEFAULT -1, + note text + +)type=innodb; diff --git a/htdocs/telephonie/sql/llx_telephonie_adsl_ligne_statut.sql b/htdocs/telephonie/sql/llx_telephonie_adsl_ligne_statut.sql new file mode 100644 index 00000000000..5033dc73253 --- /dev/null +++ b/htdocs/telephonie/sql/llx_telephonie_adsl_ligne_statut.sql @@ -0,0 +1,36 @@ +-- ======================================================================== +-- 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 +-- +-- + +create table llx_telephonie_adsl_ligne_statut ( + rowid integer AUTO_INCREMENT PRIMARY KEY, + tms datetime, + fk_ligne integer NOT NULL, + statut smallint NOT NULL, + fk_user integer, + comment varchar(255) + +)type=innodb; + diff --git a/htdocs/telephonie/sql/llx_telephonie_adsl_type.sql b/htdocs/telephonie/sql/llx_telephonie_adsl_type.sql new file mode 100644 index 00000000000..98560f475c9 --- /dev/null +++ b/htdocs/telephonie/sql/llx_telephonie_adsl_type.sql @@ -0,0 +1,28 @@ +-- ======================================================================== +-- 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$ +-- +-- ======================================================================== + +create table llx_telephonie_adsl_type ( + rowid integer AUTO_INCREMENT PRIMARY KEY, + intitule varchar(255), + commande_active smallint DEFAULT 1 + +)type=innodb;