From 82f4d8572b4602fdac6b58e9a47af885848c1a2e Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 6 Mar 2003 19:56:52 +0000 Subject: [PATCH] Ajout d'une clef d'unicite sur la champs ref --- mysql/tables/llx_product.sql | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/mysql/tables/llx_product.sql b/mysql/tables/llx_product.sql index d938d9dcef1..de421e25042 100644 --- a/mysql/tables/llx_product.sql +++ b/mysql/tables/llx_product.sql @@ -1,6 +1,5 @@ --- =================================================================== --- $Id$ --- $Source$ +-- ============================================================================ +-- Copyright (C) 2002-2003 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 @@ -16,14 +15,17 @@ -- 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_product ( rowid integer AUTO_INCREMENT PRIMARY KEY, datec datetime, tms timestamp, - ref varchar(15), + ref varchar(15) UNIQUE, label varchar(255), description text, price smallint,