Fix: SQL non portable
This commit is contained in:
parent
b8ddbb8c94
commit
0e2bf516f0
25
mysql/tables/llx_paiementfourn_facturefourn.key.sql
Normal file
25
mysql/tables/llx_paiementfourn_facturefourn.key.sql
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
-- ============================================================================
|
||||||
|
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
|
-- Copyright (C) 2005 Marc Barilley / Océbo <marc@ocebo.com>
|
||||||
|
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
|
--
|
||||||
|
-- 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);
|
||||||
@ -24,10 +24,7 @@
|
|||||||
create table llx_paiementfourn_facturefourn
|
create table llx_paiementfourn_facturefourn
|
||||||
(
|
(
|
||||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||||
fk_paiementfourn int(11) default NULL,
|
fk_paiementfourn INT(11) DEFAULT NULL,
|
||||||
fk_facturefourn int(11) default NULL,
|
fk_facturefourn INT(11) DEFAULT NULL,
|
||||||
amount double default '0',
|
amount DOUBLE DEFAULT '0'
|
||||||
|
|
||||||
KEY idx_fk_facture (fk_facturefourn),
|
|
||||||
KEY idx_fk_paiement (fk_paiementfourn)
|
|
||||||
) TYPE=innodb;
|
) TYPE=innodb;
|
||||||
Loading…
Reference in New Issue
Block a user