From 295781bdb1b4feaf728954c902b6841bd119e89e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Aug 2008 11:52:40 +0000 Subject: [PATCH] Fix: table name --- mysql/migration/2.2.0-2.4.0.sql | 2 ++ mysql/tables/llx_c_barcode_type.sql | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/mysql/migration/2.2.0-2.4.0.sql b/mysql/migration/2.2.0-2.4.0.sql index f9a4473bb16..28e57577cfb 100644 --- a/mysql/migration/2.2.0-2.4.0.sql +++ b/mysql/migration/2.2.0-2.4.0.sql @@ -13,6 +13,8 @@ delete from llx_const where name='MAIN_GRAPH_LIBRARY' and (value like 'phplot%' ALTER TABLE llx_societe_adresse_livraison ADD COLUMN tel varchar(20) after fk_pays; ALTER TABLE llx_societe_adresse_livraison ADD COLUMN fax varchar(20) after tel; +RENAME TABLE llx_c_barcode TO llx_c_barcode_type; + alter table llx_c_barcode_type modify coder varchar(16) NOT NULL; update llx_c_barcode_type set coder = 0 where coder in (1,2); diff --git a/mysql/tables/llx_c_barcode_type.sql b/mysql/tables/llx_c_barcode_type.sql index 30dbd8b3420..a2fce7ffd61 100644 --- a/mysql/tables/llx_c_barcode_type.sql +++ b/mysql/tables/llx_c_barcode_type.sql @@ -1,5 +1,6 @@ -- ======================================================================== --- Copyright (C) 2007 Regis Houssin +-- Copyright (C) 2007 Regis Houssin +-- Copyright (C) 2008 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 @@ -18,7 +19,7 @@ -- $Id$ -- ======================================================================== -create table llx_c_barcode +create table llx_c_barcode_type ( rowid integer AUTO_INCREMENT PRIMARY KEY, code varchar(16) NOT NULL,