From 10373b291804cfef48a2655f0bfaf7cf89221df4 Mon Sep 17 00:00:00 2001 From: "marcimat@rezo.net" <> Date: Fri, 5 Apr 2013 13:48:59 +0000 Subject: [PATCH] Pas besoin de 11 pour la longueur de ce integer --- base/factures.php | 4 ++-- fabrique_factures.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/base/factures.php b/base/factures.php index 3691cd7..b7a2a23 100644 --- a/base/factures.php +++ b/base/factures.php @@ -82,7 +82,7 @@ function factures_declarer_tables_objets_sql($tables) { 'field'=> array( "id_factures_ligne" => "bigint(21) NOT NULL", "id_facture" => "int(11) NOT NULL DEFAULT '0'", - "position" => "int(11) DEFAULT NULL", + "position" => "int(2) DEFAULT NULL", "quantite" => "float DEFAULT NULL", "unite" => "varchar(50) DEFAULT NULL", "designation" => "text", @@ -108,4 +108,4 @@ function factures_declarer_tables_objets_sql($tables) { -?> \ No newline at end of file +?> diff --git a/fabrique_factures.php b/fabrique_factures.php index 039b8f6..dfd6ba5 100644 --- a/fabrique_factures.php +++ b/fabrique_factures.php @@ -374,7 +374,7 @@ factures_post_creation($data, $destination_plugin, $destination_ancien_plugin);' array ( 'nom' => 'Position', 'champ' => 'position', - 'sql' => 'int(11) DEFAULT NULL', + 'sql' => 'int(2) DEFAULT NULL', 'caracteristiques' => array ( 0 => 'editable', @@ -550,4 +550,4 @@ factures_post_creation($data, $destination_plugin, $destination_ancien_plugin);' ), ); -?> \ No newline at end of file +?>