From 0e2bf516f0b5e323979fe42c3fdaa2d3809e658f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 16 Jan 2006 00:23:29 +0000 Subject: [PATCH] Fix: SQL non portable --- .../llx_paiementfourn_facturefourn.key.sql | 25 +++++++++++++++++++ .../tables/llx_paiementfourn_facturefourn.sql | 11 +++----- 2 files changed, 29 insertions(+), 7 deletions(-) create mode 100644 mysql/tables/llx_paiementfourn_facturefourn.key.sql diff --git a/mysql/tables/llx_paiementfourn_facturefourn.key.sql b/mysql/tables/llx_paiementfourn_facturefourn.key.sql new file mode 100644 index 00000000000..e1a3a266723 --- /dev/null +++ b/mysql/tables/llx_paiementfourn_facturefourn.key.sql @@ -0,0 +1,25 @@ +-- ============================================================================ +-- 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$ +-- $Source$ +-- =========================================================================== + +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/mysql/tables/llx_paiementfourn_facturefourn.sql b/mysql/tables/llx_paiementfourn_facturefourn.sql index a1fe2d5566a..ce02e86e814 100644 --- a/mysql/tables/llx_paiementfourn_facturefourn.sql +++ b/mysql/tables/llx_paiementfourn_facturefourn.sql @@ -24,10 +24,7 @@ create table llx_paiementfourn_facturefourn ( rowid integer AUTO_INCREMENT PRIMARY KEY, - fk_paiementfourn int(11) default NULL, - fk_facturefourn int(11) default NULL, - amount double default '0', - - KEY idx_fk_facture (fk_facturefourn), - KEY idx_fk_paiement (fk_paiementfourn) -) TYPE=innodb; + fk_paiementfourn INT(11) DEFAULT NULL, + fk_facturefourn INT(11) DEFAULT NULL, + amount DOUBLE DEFAULT '0' +) TYPE=innodb; \ No newline at end of file