From 919e696848070d658337e8915cb6ceff2c5d8a8a Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 18 Apr 2006 17:31:43 +0000 Subject: [PATCH] Ajout table pour l'adresse de livraison --- mysql/migration/2.0.0-2.1.0.sql | 18 +++++++++ .../tables/llx_societe_adresse_livraison.sql | 39 +++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 mysql/tables/llx_societe_adresse_livraison.sql diff --git a/mysql/migration/2.0.0-2.1.0.sql b/mysql/migration/2.0.0-2.1.0.sql index 9157cba89f8..3c20a57677e 100644 --- a/mysql/migration/2.0.0-2.1.0.sql +++ b/mysql/migration/2.0.0-2.1.0.sql @@ -123,3 +123,21 @@ alter table llx_paiementfourn add statut smallint(6) NOT NULL DEFAULT 0; update llx_bank_url set type = 'payment_supplier' where label = '(paiement)' and type='payment' and url like '%/fourn/%'; + + +create table llx_societe_adresse_livraison +( + rowid integer AUTO_INCREMENT PRIMARY KEY, + tms timestamp, + datec datetime, + fk_societe integer DEFAULT 0, + nom varchar(60), + address varchar(255), + cp varchar(10), + ville varchar(50), + fk_departement integer DEFAULT 0, + fk_pays integer DEFAULT 0, + note text, + fk_user_creat integer, + fk_user_modif integer +)type=innodb; \ No newline at end of file diff --git a/mysql/tables/llx_societe_adresse_livraison.sql b/mysql/tables/llx_societe_adresse_livraison.sql new file mode 100644 index 00000000000..3d2a4257195 --- /dev/null +++ b/mysql/tables/llx_societe_adresse_livraison.sql @@ -0,0 +1,39 @@ +-- ======================================================================== +-- 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$ +-- $Source$ +-- +-- ======================================================================== + +create table llx_societe_adresse_livraison +( + rowid integer AUTO_INCREMENT PRIMARY KEY, + tms timestamp, + datec datetime, -- creation date + fk_societe integer DEFAULT 0, -- + nom varchar(60), -- company name + address varchar(255), -- company adresse + cp varchar(10), -- zipcode + ville varchar(50), -- town + fk_departement integer DEFAULT 0, -- + fk_pays integer DEFAULT 0, -- + note text, -- + fk_user_creat integer, -- utilisateur qui a créé l'info + fk_user_modif integer -- utilisateur qui a modifié l'info +)type=innodb; \ No newline at end of file