Ajout contrainte intgrit

This commit is contained in:
Laurent Destailleur 2007-01-03 22:10:23 +00:00
parent 5280b40c96
commit 0aa1904a36
2 changed files with 26 additions and 0 deletions

View File

@ -631,3 +631,5 @@ create table llx_bordereau_cheque
alter table llx_product_price add price_level tinyint(4) NULL DEFAULT 1;
alter table llx_product_price add column price_ttc float(12,4) DEFAULT 0 after price;
alter table llx_product_price add column price_base_type varchar(3) DEFAULT 'HT' after price_ttc;
ALTER TABLE llx_document_model ADD UNIQUE uk_document_model (nom,type);

View File

@ -0,0 +1,24 @@
-- ===================================================================
-- Copyright (C) 2007 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_document_model ADD UNIQUE uk_document_model (nom,type);