New: Add module field to allow external modules to set their name when they add a new record during init/remove.

This commit is contained in:
Laurent Destailleur 2011-06-28 07:12:41 +00:00
parent 2ca68b4e79
commit 1c900f9375
5 changed files with 19 additions and 9 deletions

View File

@ -1,5 +1,5 @@
--
-- $Id: 3.0.0-3.1.0.sql,v 1.73 2011/06/25 09:50:56 eldy Exp $
-- $Id: 3.0.0-3.1.0.sql,v 1.74 2011/06/28 07:12:41 eldy Exp $
--
-- Be carefull to requests order.
-- This file must be loaded by calling /install/index.php page
@ -419,3 +419,9 @@ ALTER TABLE llx_facture MODIFY ref_client varchar(50);
ALTER TABLE llx_propal MODIFY ref_ext varchar(50);
ALTER TABLE llx_propal MODIFY ref_client varchar(50);
ALTER TABLE llx_propal ADD COLUMN ref_int varchar(50) AFTER ref_ext;
-- Add module field to allow external modules to set their name when they add a new record during init/remove.
ALTER TABLE llx_c_type_contact ADD COLUMN module varchar(32) NULL;
ALTER TABLE llx_c_typeent ADD COLUMN module varchar(32) NULL;
ALTER TABLE llx_c_effectif ADD COLUMN module varchar(32) NULL;
ALTER TABLE llx_c_forme_juridique ADD COLUMN module varchar(32) NULL;

View File

@ -16,7 +16,7 @@
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
--
-- $Id$
-- $Id: llx_c_effectif.sql,v 1.3 2011/06/28 07:12:41 eldy Exp $
-- ========================================================================
create table llx_c_effectif
@ -24,6 +24,7 @@ create table llx_c_effectif
id integer PRIMARY KEY,
code varchar(12) UNIQUE NOT NULL,
libelle varchar(30),
active tinyint DEFAULT 1 NOT NULL
active tinyint DEFAULT 1 NOT NULL,
module varchar(32) NULL
)ENGINE=innodb;

View File

@ -16,7 +16,7 @@
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
--
-- $Id$
-- $Id: llx_c_forme_juridique.sql,v 1.5 2011/06/28 07:12:41 eldy Exp $
-- ========================================================================
create table llx_c_forme_juridique
@ -26,6 +26,7 @@ create table llx_c_forme_juridique
fk_pays integer NOT NULL,
libelle varchar(255),
isvatexempted tinyint DEFAULT 0 NOT NULL,
active tinyint DEFAULT 1 NOT NULL
active tinyint DEFAULT 1 NOT NULL,
module varchar(32) NULL
)ENGINE=innodb;

View File

@ -24,7 +24,7 @@
-- Libelle est un texte decrivant le type de contact.
-- active precise si cette valeur est 'active' ou 'archive'.
--
-- $Id$
-- $Id: llx_c_type_contact.sql,v 1.4 2011/06/28 07:12:41 eldy Exp $
-- ========================================================================
@ -35,5 +35,6 @@ create table llx_c_type_contact
source varchar(8) DEFAULT 'external' NOT NULL,
code varchar(16) NOT NULL,
libelle varchar(64) NOT NULL,
active tinyint DEFAULT 1 NOT NULL
active tinyint DEFAULT 1 NOT NULL,
module varchar(32) NULL
)ENGINE=innodb;

View File

@ -16,7 +16,7 @@
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
--
-- $Id$
-- $Id: llx_c_typent.sql,v 1.3 2011/06/28 07:12:41 eldy Exp $
-- ========================================================================
create table llx_c_typent
@ -24,5 +24,6 @@ create table llx_c_typent
id integer PRIMARY KEY,
code varchar(12) UNIQUE NOT NULL,
libelle varchar(30),
active tinyint DEFAULT 1 NOT NULL
active tinyint DEFAULT 1 NOT NULL,
module varchar(32) NULL
)ENGINE=innodb;