Fix: compatibility with mysql 5.5+
This commit is contained in:
parent
3caea30704
commit
e28ab7f759
@ -28,4 +28,4 @@ create table llx_accountingaccount
|
|||||||
account_number varchar(20) NOT NULL,
|
account_number varchar(20) NOT NULL,
|
||||||
account_parent varchar(20),
|
account_parent varchar(20),
|
||||||
label varchar(128) NOT NULL
|
label varchar(128) NOT NULL
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -25,4 +25,4 @@ create table llx_accountingdebcred
|
|||||||
account_number varchar(20) NOT NULL,
|
account_number varchar(20) NOT NULL,
|
||||||
amount real NOT NULL,
|
amount real NOT NULL,
|
||||||
direction varchar(1) NOT NULL
|
direction varchar(1) NOT NULL
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -28,4 +28,4 @@ create table llx_accountingsystem
|
|||||||
fk_author varchar(20),
|
fk_author varchar(20),
|
||||||
tms timestamp,
|
tms timestamp,
|
||||||
active smallint DEFAULT 0
|
active smallint DEFAULT 0
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -29,4 +29,4 @@ create table llx_accountingtransaction
|
|||||||
fk_source integer NOT NULL,
|
fk_source integer NOT NULL,
|
||||||
sourcetype varchar(16) NOT NULL,
|
sourcetype varchar(16) NOT NULL,
|
||||||
url varchar(255)
|
url varchar(255)
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -28,4 +28,4 @@ create table llx_action_def
|
|||||||
titre varchar(255) NOT NULL,
|
titre varchar(255) NOT NULL,
|
||||||
description text,
|
description text,
|
||||||
objet_type varchar(16) NOT NULL
|
objet_type varchar(16) NOT NULL
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -61,7 +61,7 @@ create table llx_actioncomm
|
|||||||
fk_supplier_order integer,
|
fk_supplier_order integer,
|
||||||
fk_supplier_invoice integer
|
fk_supplier_invoice integer
|
||||||
|
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -61,4 +61,4 @@ create table llx_adherent
|
|||||||
fk_user_mod integer,
|
fk_user_mod integer,
|
||||||
fk_user_valid integer,
|
fk_user_valid integer,
|
||||||
import_key varchar(14) -- Import key
|
import_key varchar(14) -- Import key
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -25,4 +25,4 @@ create table llx_adherent_options
|
|||||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||||
tms timestamp,
|
tms timestamp,
|
||||||
fk_member integer NOT NULL -- member id
|
fk_member integer NOT NULL -- member id
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -30,4 +30,4 @@ create table llx_adherent_options_label
|
|||||||
type varchar(8),
|
type varchar(8),
|
||||||
size integer DEFAULT 0,
|
size integer DEFAULT 0,
|
||||||
pos integer DEFAULT 0
|
pos integer DEFAULT 0
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -35,4 +35,4 @@ create table llx_adherent_type
|
|||||||
vote varchar(3) NOT NULL DEFAULT 'yes',
|
vote varchar(3) NOT NULL DEFAULT 'yes',
|
||||||
note text,
|
note text,
|
||||||
mail_valid text -- mail envoye a la validation
|
mail_valid text -- mail envoye a la validation
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -39,4 +39,4 @@ create table llx_bank
|
|||||||
banque varchar(255), -- banque pour les cheques
|
banque varchar(255), -- banque pour les cheques
|
||||||
emetteur varchar(255), -- emetteur du cheque
|
emetteur varchar(255), -- emetteur du cheque
|
||||||
author varchar(40) -- a supprimer apres migration
|
author varchar(40) -- a supprimer apres migration
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -54,7 +54,7 @@ create table llx_bank_account
|
|||||||
min_allowed integer DEFAULT 0,
|
min_allowed integer DEFAULT 0,
|
||||||
min_desired integer DEFAULT 0,
|
min_desired integer DEFAULT 0,
|
||||||
comment text
|
comment text
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- List of codes for the field entity
|
-- List of codes for the field entity
|
||||||
|
|||||||
@ -24,4 +24,4 @@ create table llx_bank_categ
|
|||||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||||
label varchar(255),
|
label varchar(255),
|
||||||
entity integer DEFAULT 1 NOT NULL -- multi company id
|
entity integer DEFAULT 1 NOT NULL -- multi company id
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -22,4 +22,4 @@ create table llx_bank_class
|
|||||||
(
|
(
|
||||||
lineid integer NOT NULL,
|
lineid integer NOT NULL,
|
||||||
fk_categ integer NOT NULL
|
fk_categ integer NOT NULL
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -27,4 +27,4 @@ create table llx_bank_url
|
|||||||
url varchar(255),
|
url varchar(255),
|
||||||
label varchar(255),
|
label varchar(255),
|
||||||
type varchar(20) NOT NULL
|
type varchar(20) NOT NULL
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -29,4 +29,4 @@ create table llx_bookmark
|
|||||||
title varchar(64),
|
title varchar(64),
|
||||||
favicon varchar(24),
|
favicon varchar(24),
|
||||||
position integer DEFAULT 0
|
position integer DEFAULT 0
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -37,4 +37,4 @@ create table llx_bordereau_cheque
|
|||||||
note text,
|
note text,
|
||||||
statut smallint NOT NULL DEFAULT 0
|
statut smallint NOT NULL DEFAULT 0
|
||||||
|
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -31,4 +31,4 @@ create table llx_boxes
|
|||||||
position smallint NOT NULL,
|
position smallint NOT NULL,
|
||||||
box_order varchar(3) NOT NULL,
|
box_order varchar(3) NOT NULL,
|
||||||
fk_user integer default 0 NOT NULL
|
fk_user integer default 0 NOT NULL
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -27,4 +27,4 @@ create table llx_boxes_def
|
|||||||
entity integer DEFAULT 1 NOT NULL, -- multi company id
|
entity integer DEFAULT 1 NOT NULL, -- multi company id
|
||||||
tms timestamp,
|
tms timestamp,
|
||||||
note varchar(130) -- Do not increase this as file+note must be small to allow index
|
note varchar(130) -- Do not increase this as file+note must be small to allow index
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -29,4 +29,4 @@ create table llx_c_actioncomm
|
|||||||
active tinyint DEFAULT 1 NOT NULL,
|
active tinyint DEFAULT 1 NOT NULL,
|
||||||
todo tinyint,
|
todo tinyint,
|
||||||
position integer NOT NULL DEFAULT 0
|
position integer NOT NULL DEFAULT 0
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -28,4 +28,4 @@ create table llx_c_barcode_type
|
|||||||
coder varchar(16) NOT NULL,
|
coder varchar(16) NOT NULL,
|
||||||
example varchar(16) NOT NULL
|
example varchar(16) NOT NULL
|
||||||
|
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -27,7 +27,7 @@ create table llx_c_chargesociales
|
|||||||
active tinyint DEFAULT 1 NOT NULL,
|
active tinyint DEFAULT 1 NOT NULL,
|
||||||
code varchar(12) NOT NULL,
|
code varchar(12) NOT NULL,
|
||||||
fk_pays integer DEFAULT 1 NOT NULL
|
fk_pays integer DEFAULT 1 NOT NULL
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -25,5 +25,5 @@ create table llx_c_civilite
|
|||||||
code varchar(6) UNIQUE NOT NULL,
|
code varchar(6) UNIQUE NOT NULL,
|
||||||
civilite varchar(50),
|
civilite varchar(50),
|
||||||
active tinyint DEFAULT 1 NOT NULL
|
active tinyint DEFAULT 1 NOT NULL
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|
||||||
|
|||||||
@ -25,5 +25,5 @@ create table llx_c_currencies
|
|||||||
label varchar(64),
|
label varchar(64),
|
||||||
labelsing varchar(64),
|
labelsing varchar(64),
|
||||||
active tinyint DEFAULT 1 NOT NULL
|
active tinyint DEFAULT 1 NOT NULL
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|
||||||
|
|||||||
@ -29,7 +29,7 @@ create table llx_c_departements
|
|||||||
ncc varchar(50),
|
ncc varchar(50),
|
||||||
nom varchar(50),
|
nom varchar(50),
|
||||||
active tinyint DEFAULT 1 NOT NULL
|
active tinyint DEFAULT 1 NOT NULL
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -28,4 +28,4 @@ create table llx_c_ecotaxe
|
|||||||
organization varchar(255), -- Organisme gerant le bareme tarifaire
|
organization varchar(255), -- Organisme gerant le bareme tarifaire
|
||||||
fk_pays integer NOT NULL, -- Pays correspondant
|
fk_pays integer NOT NULL, -- Pays correspondant
|
||||||
active tinyint DEFAULT 1 NOT NULL
|
active tinyint DEFAULT 1 NOT NULL
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
@ -25,5 +25,5 @@ create table llx_c_effectif
|
|||||||
code varchar(12) UNIQUE NOT NULL,
|
code varchar(12) UNIQUE NOT NULL,
|
||||||
libelle varchar(30),
|
libelle varchar(30),
|
||||||
active tinyint DEFAULT 1 NOT NULL
|
active tinyint DEFAULT 1 NOT NULL
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|
||||||
|
|||||||
@ -33,4 +33,4 @@ create table llx_c_field_list
|
|||||||
enabled varchar(255) DEFAULT 1, -- Condition to show or hide
|
enabled varchar(255) DEFAULT 1, -- Condition to show or hide
|
||||||
rang integer DEFAULT 0
|
rang integer DEFAULT 0
|
||||||
|
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -27,5 +27,5 @@ create table llx_c_forme_juridique
|
|||||||
libelle varchar(255),
|
libelle varchar(255),
|
||||||
isvatexempted tinyint DEFAULT 0 NOT NULL,
|
isvatexempted tinyint DEFAULT 0 NOT NULL,
|
||||||
active tinyint DEFAULT 1 NOT NULL
|
active tinyint DEFAULT 1 NOT NULL
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|
||||||
|
|||||||
@ -25,5 +25,5 @@ create table llx_c_methode_commande_fournisseur
|
|||||||
code varchar(30),
|
code varchar(30),
|
||||||
libelle varchar(60),
|
libelle varchar(60),
|
||||||
active tinyint default 1 NOT NULL
|
active tinyint default 1 NOT NULL
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|
||||||
|
|||||||
@ -33,7 +33,7 @@ create table llx_c_paiement
|
|||||||
libelle varchar(30),
|
libelle varchar(30),
|
||||||
type smallint,
|
type smallint,
|
||||||
active tinyint DEFAULT 1 NOT NULL
|
active tinyint DEFAULT 1 NOT NULL
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -25,9 +25,9 @@ create table llx_c_paper_format
|
|||||||
label varchar(50) NOT NULL,
|
label varchar(50) NOT NULL,
|
||||||
width float(6,2) DEFAULT 0, -- Largeur du papier
|
width float(6,2) DEFAULT 0, -- Largeur du papier
|
||||||
height float(6,2) DEFAULT 0, -- Hauteur du papier
|
height float(6,2) DEFAULT 0, -- Hauteur du papier
|
||||||
unit varchar(5) NOT NULL, -- Unité de mesure
|
unit varchar(5) NOT NULL, -- Unit<EFBFBD> de mesure
|
||||||
active tinyint DEFAULT 1 NOT NULL
|
active tinyint DEFAULT 1 NOT NULL
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Conversion
|
-- Conversion
|
||||||
|
|||||||
@ -29,4 +29,4 @@ create table llx_c_payment_term
|
|||||||
fdm tinyint, -- reglement fin de mois
|
fdm tinyint, -- reglement fin de mois
|
||||||
nbjour smallint,
|
nbjour smallint,
|
||||||
decalage smallint
|
decalage smallint
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -26,4 +26,4 @@ create table llx_c_pays
|
|||||||
code_iso varchar(3) ,
|
code_iso varchar(3) ,
|
||||||
libelle varchar(50) NOT NULL,
|
libelle varchar(50) NOT NULL,
|
||||||
active tinyint DEFAULT 1 NOT NULL
|
active tinyint DEFAULT 1 NOT NULL
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -25,5 +25,5 @@ create table llx_c_propalst
|
|||||||
code varchar(12) UNIQUE NOT NULL,
|
code varchar(12) UNIQUE NOT NULL,
|
||||||
label varchar(30),
|
label varchar(30),
|
||||||
active tinyint DEFAULT 1 NOT NULL
|
active tinyint DEFAULT 1 NOT NULL
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|
||||||
|
|||||||
@ -24,5 +24,5 @@ create table llx_c_prospectlevel
|
|||||||
label varchar(30),
|
label varchar(30),
|
||||||
sortorder smallint,
|
sortorder smallint,
|
||||||
active smallint DEFAULT 1 NOT NULL
|
active smallint DEFAULT 1 NOT NULL
|
||||||
) type=innodb;
|
) ENGINE=innodb;
|
||||||
|
|
||||||
|
|||||||
@ -28,5 +28,5 @@ create table llx_c_regions
|
|||||||
tncc integer,
|
tncc integer,
|
||||||
nom varchar(50),
|
nom varchar(50),
|
||||||
active tinyint DEFAULT 1 NOT NULL
|
active tinyint DEFAULT 1 NOT NULL
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|
||||||
|
|||||||
@ -26,4 +26,4 @@ create table llx_c_shipment_mode
|
|||||||
libelle varchar(50) NOT NULL,
|
libelle varchar(50) NOT NULL,
|
||||||
description text,
|
description text,
|
||||||
active tinyint DEFAULT 0
|
active tinyint DEFAULT 0
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -25,5 +25,5 @@ create table llx_c_stcomm
|
|||||||
code varchar(12) UNIQUE NOT NULL,
|
code varchar(12) UNIQUE NOT NULL,
|
||||||
libelle varchar(30),
|
libelle varchar(30),
|
||||||
active tinyint default 1 NOT NULL
|
active tinyint default 1 NOT NULL
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|
||||||
|
|||||||
@ -31,5 +31,5 @@ create table llx_c_tva
|
|||||||
active tinyint DEFAULT 1 NOT NULL,
|
active tinyint DEFAULT 1 NOT NULL,
|
||||||
accountancy_code varchar(15) DEFAULT NULL
|
accountancy_code varchar(15) DEFAULT NULL
|
||||||
|
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|
||||||
|
|||||||
@ -36,4 +36,4 @@ create table llx_c_type_contact
|
|||||||
code varchar(16) NOT NULL,
|
code varchar(16) NOT NULL,
|
||||||
libelle varchar(64) NOT NULL,
|
libelle varchar(64) NOT NULL,
|
||||||
active tinyint DEFAULT 1 NOT NULL
|
active tinyint DEFAULT 1 NOT NULL
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -25,4 +25,4 @@ create table llx_c_type_fees
|
|||||||
code varchar(12) UNIQUE NOT NULL,
|
code varchar(12) UNIQUE NOT NULL,
|
||||||
libelle varchar(30),
|
libelle varchar(30),
|
||||||
active tinyint DEFAULT 1 NOT NULL
|
active tinyint DEFAULT 1 NOT NULL
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -25,4 +25,4 @@ create table llx_c_typent
|
|||||||
code varchar(12) UNIQUE NOT NULL,
|
code varchar(12) UNIQUE NOT NULL,
|
||||||
libelle varchar(30),
|
libelle varchar(30),
|
||||||
active tinyint DEFAULT 1 NOT NULL
|
active tinyint DEFAULT 1 NOT NULL
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -26,4 +26,4 @@ create table llx_c_ziptown
|
|||||||
zip varchar(10) NOT NULL, -- Zip code
|
zip varchar(10) NOT NULL, -- Zip code
|
||||||
town varchar(255) NOT NULL, -- Town name
|
town varchar(255) NOT NULL, -- Town name
|
||||||
active tinyint NOT NULL DEFAULT 1
|
active tinyint NOT NULL DEFAULT 1
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -30,7 +30,7 @@ create table llx_categorie
|
|||||||
fk_soc integer DEFAULT NULL, -- attribution of the category has a company (for product only)
|
fk_soc integer DEFAULT NULL, -- attribution of the category has a company (for product only)
|
||||||
visible tinyint DEFAULT 1 NOT NULL, -- determine if the products are visible or not
|
visible tinyint DEFAULT 1 NOT NULL, -- determine if the products are visible or not
|
||||||
import_key varchar(14) -- Import key
|
import_key varchar(14) -- Import key
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- List of codes for the field type
|
-- List of codes for the field type
|
||||||
|
|||||||
@ -23,4 +23,4 @@ create table llx_categorie_association
|
|||||||
(
|
(
|
||||||
fk_categorie_mere integer NOT NULL,
|
fk_categorie_mere integer NOT NULL,
|
||||||
fk_categorie_fille integer NOT NULL
|
fk_categorie_fille integer NOT NULL
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -23,4 +23,4 @@ create table llx_categorie_fournisseur
|
|||||||
fk_categorie integer NOT NULL,
|
fk_categorie integer NOT NULL,
|
||||||
fk_societe integer NOT NULL,
|
fk_societe integer NOT NULL,
|
||||||
UNIQUE (fk_categorie, fk_societe)
|
UNIQUE (fk_categorie, fk_societe)
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -23,4 +23,4 @@ create table llx_categorie_member
|
|||||||
(
|
(
|
||||||
fk_categorie integer NOT NULL,
|
fk_categorie integer NOT NULL,
|
||||||
fk_member integer NOT NULL
|
fk_member integer NOT NULL
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -23,4 +23,4 @@ create table llx_categorie_product
|
|||||||
(
|
(
|
||||||
fk_categorie integer NOT NULL,
|
fk_categorie integer NOT NULL,
|
||||||
fk_product integer NOT NULL
|
fk_product integer NOT NULL
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -22,4 +22,4 @@ create table llx_categorie_societe
|
|||||||
(
|
(
|
||||||
fk_categorie integer NOT NULL,
|
fk_categorie integer NOT NULL,
|
||||||
fk_societe integer NOT NULL
|
fk_societe integer NOT NULL
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -29,7 +29,7 @@ create table llx_chargesociales
|
|||||||
amount real default 0 NOT NULL,
|
amount real default 0 NOT NULL,
|
||||||
paye smallint default 0 NOT NULL,
|
paye smallint default 0 NOT NULL,
|
||||||
periode date
|
periode date
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- List of codes for the field entity
|
-- List of codes for the field entity
|
||||||
|
|||||||
@ -61,4 +61,4 @@ create table llx_commande
|
|||||||
date_livraison date default NULL,
|
date_livraison date default NULL,
|
||||||
fk_adresse_livraison integer, -- delivery address (deprecated)
|
fk_adresse_livraison integer, -- delivery address (deprecated)
|
||||||
import_key varchar(14)
|
import_key varchar(14)
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -51,7 +51,7 @@ create table llx_commande_fournisseur
|
|||||||
note_public text,
|
note_public text,
|
||||||
model_pdf varchar(255),
|
model_pdf varchar(255),
|
||||||
fk_methode_commande integer default 0
|
fk_methode_commande integer default 0
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- List of codes for the field entity
|
-- List of codes for the field entity
|
||||||
|
|||||||
@ -23,8 +23,8 @@ create table llx_commande_fournisseur_dispatch
|
|||||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||||
fk_commande integer,
|
fk_commande integer,
|
||||||
fk_product integer,
|
fk_product integer,
|
||||||
qty float, -- quantité
|
qty float, -- quantit<EFBFBD>
|
||||||
fk_entrepot integer,
|
fk_entrepot integer,
|
||||||
fk_user integer,
|
fk_user integer,
|
||||||
datec datetime
|
datec datetime
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -28,4 +28,4 @@ create table llx_commande_fournisseur_log
|
|||||||
fk_statut smallint NOT NULL,
|
fk_statut smallint NOT NULL,
|
||||||
fk_user integer NOT NULL,
|
fk_user integer NOT NULL,
|
||||||
comment varchar(255) NULL
|
comment varchar(255) NULL
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -44,4 +44,4 @@ create table llx_commande_fournisseurdet
|
|||||||
date_start datetime DEFAULT NULL, -- date debut si service
|
date_start datetime DEFAULT NULL, -- date debut si service
|
||||||
date_end datetime DEFAULT NULL, -- date fin si service
|
date_end datetime DEFAULT NULL, -- date fin si service
|
||||||
info_bits integer DEFAULT 0 -- TVA NPR ou non
|
info_bits integer DEFAULT 0 -- TVA NPR ou non
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -50,7 +50,7 @@ create table llx_commandedet
|
|||||||
special_code integer UNSIGNED DEFAULT 0, -- code pour les lignes speciales
|
special_code integer UNSIGNED DEFAULT 0, -- code pour les lignes speciales
|
||||||
rang integer DEFAULT 0,
|
rang integer DEFAULT 0,
|
||||||
import_key varchar(14)
|
import_key varchar(14)
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- List of codes for special_code
|
-- List of codes for special_code
|
||||||
|
|||||||
@ -31,4 +31,4 @@ create table llx_compta
|
|||||||
valid tinyint DEFAULT 0,
|
valid tinyint DEFAULT 0,
|
||||||
note text
|
note text
|
||||||
|
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -27,4 +27,4 @@ create table llx_compta_account
|
|||||||
fk_user_author integer,
|
fk_user_author integer,
|
||||||
note text
|
note text
|
||||||
|
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -28,4 +28,4 @@ create table llx_compta_compte_generaux
|
|||||||
note text,
|
note text,
|
||||||
|
|
||||||
UNIQUE(numero)
|
UNIQUE(numero)
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -35,7 +35,7 @@ create table llx_const
|
|||||||
visible tinyint DEFAULT 1 NOT NULL,
|
visible tinyint DEFAULT 1 NOT NULL,
|
||||||
note text,
|
note text,
|
||||||
tms timestamp
|
tms timestamp
|
||||||
) type=innodb;
|
) ENGINE=innodb;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- List of codes for the field entity
|
-- List of codes for the field entity
|
||||||
|
|||||||
@ -42,5 +42,5 @@ create table llx_contrat
|
|||||||
note text,
|
note text,
|
||||||
note_public text
|
note_public text
|
||||||
|
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|
||||||
|
|||||||
@ -59,4 +59,4 @@ create table llx_contratdet
|
|||||||
fk_user_cloture integer,
|
fk_user_cloture integer,
|
||||||
commentaire text
|
commentaire text
|
||||||
|
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -28,4 +28,4 @@ create table llx_contratdet_log
|
|||||||
fk_user_author integer NOT NULL,
|
fk_user_author integer NOT NULL,
|
||||||
commentaire text
|
commentaire text
|
||||||
|
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -29,4 +29,4 @@ create table llx_cotisation
|
|||||||
cotisation real,
|
cotisation real,
|
||||||
fk_bank integer DEFAULT NULL,
|
fk_bank integer DEFAULT NULL,
|
||||||
note text
|
note text
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -37,4 +37,4 @@ create table llx_deplacement
|
|||||||
fk_projet integer DEFAULT 0,
|
fk_projet integer DEFAULT 0,
|
||||||
note text,
|
note text,
|
||||||
note_public text
|
note_public text
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -29,4 +29,4 @@ create table llx_document
|
|||||||
fk_group integer NULL,
|
fk_group integer NULL,
|
||||||
permissions char(9) DEFAULT 'rw-rw-rw'
|
permissions char(9) DEFAULT 'rw-rw-rw'
|
||||||
|
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -25,4 +25,4 @@ create table llx_document_generator
|
|||||||
classfile varchar(255) NOT NULL,
|
classfile varchar(255) NOT NULL,
|
||||||
class varchar(255) NOT NULL
|
class varchar(255) NOT NULL
|
||||||
|
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -30,7 +30,7 @@ create table llx_document_model
|
|||||||
type varchar(20) NOT NULL,
|
type varchar(20) NOT NULL,
|
||||||
libelle varchar(255),
|
libelle varchar(255),
|
||||||
description text
|
description text
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- List of codes for the field entity
|
-- List of codes for the field entity
|
||||||
|
|||||||
@ -27,6 +27,6 @@ create table llx_dolibarr_modules
|
|||||||
active_date datetime NOT NULL,
|
active_date datetime NOT NULL,
|
||||||
active_version varchar(25) NOT NULL
|
active_version varchar(25) NOT NULL
|
||||||
|
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -24,5 +24,5 @@ create table llx_domain
|
|||||||
datec datetime,
|
datec datetime,
|
||||||
label varchar(255),
|
label varchar(255),
|
||||||
note text
|
note text
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|
||||||
|
|||||||
@ -47,4 +47,4 @@ create table llx_don
|
|||||||
note_public text,
|
note_public text,
|
||||||
model_pdf varchar(255),
|
model_pdf varchar(255),
|
||||||
import_key varchar(14)
|
import_key varchar(14)
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -33,4 +33,4 @@ create table llx_ecm_directories
|
|||||||
date_m timestamp,
|
date_m timestamp,
|
||||||
fk_user_c integer,
|
fk_user_c integer,
|
||||||
fk_user_m integer
|
fk_user_m integer
|
||||||
) type=innodb;
|
) ENGINE=innodb;
|
||||||
|
|||||||
@ -42,4 +42,4 @@ create table llx_ecm_documents
|
|||||||
crc varchar(32) NOT NULL DEFAULT '', -- checksum
|
crc varchar(32) NOT NULL DEFAULT '', -- checksum
|
||||||
cryptkey varchar(50) NOT NULL DEFAULT '', -- crypt key
|
cryptkey varchar(50) NOT NULL DEFAULT '', -- crypt key
|
||||||
cipher varchar(50) NOT NULL DEFAULT 'twofish' -- crypt cipher
|
cipher varchar(50) NOT NULL DEFAULT 'twofish' -- crypt cipher
|
||||||
) type=innodb;
|
) ENGINE=innodb;
|
||||||
|
|||||||
@ -31,5 +31,5 @@ create table llx_element_contact
|
|||||||
element_id int NOT NULL, -- la reference de l'element.
|
element_id int NOT NULL, -- la reference de l'element.
|
||||||
fk_c_type_contact int NOT NULL, -- nature du contact.
|
fk_c_type_contact int NOT NULL, -- nature du contact.
|
||||||
fk_socpeople integer NOT NULL
|
fk_socpeople integer NOT NULL
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|
||||||
|
|||||||
@ -28,5 +28,5 @@ create table llx_element_element
|
|||||||
sourcetype varchar(16) NOT NULL,
|
sourcetype varchar(16) NOT NULL,
|
||||||
fk_target integer NOT NULL,
|
fk_target integer NOT NULL,
|
||||||
targettype varchar(16) NOT NULL
|
targettype varchar(16) NOT NULL
|
||||||
) type=innodb;
|
) ENGINE=innodb;
|
||||||
|
|
||||||
|
|||||||
@ -26,5 +26,5 @@ create table llx_element_rang
|
|||||||
fk_child integer NOT NULL,
|
fk_child integer NOT NULL,
|
||||||
childtype varchar(16) NOT NULL,
|
childtype varchar(16) NOT NULL,
|
||||||
rang integer DEFAULT 0
|
rang integer DEFAULT 0
|
||||||
) type=innodb;
|
) ENGINE=innodb;
|
||||||
|
|
||||||
|
|||||||
@ -36,4 +36,4 @@ create table llx_entrepot
|
|||||||
statut tinyint DEFAULT 1, -- 1 open, 0 close
|
statut tinyint DEFAULT 1, -- 1 open, 0 close
|
||||||
valo_pmp float(12,4), -- valoristaion du stock en PMP
|
valo_pmp float(12,4), -- valoristaion du stock en PMP
|
||||||
fk_user_author integer
|
fk_user_author integer
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -35,7 +35,7 @@ create table llx_events
|
|||||||
ip varchar(32) NOT NULL, -- ip
|
ip varchar(32) NOT NULL, -- ip
|
||||||
user_agent varchar(255) NULL, -- user agent
|
user_agent varchar(255) NULL, -- user agent
|
||||||
fk_object integer -- id of related object
|
fk_object integer -- id of related object
|
||||||
) type=innodb;
|
) ENGINE=innodb;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- List of codes for the field entity
|
-- List of codes for the field entity
|
||||||
|
|||||||
@ -48,4 +48,4 @@ create table llx_expedition
|
|||||||
note text,
|
note text,
|
||||||
model_pdf varchar(255)
|
model_pdf varchar(255)
|
||||||
|
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -27,4 +27,4 @@ create table llx_expeditiondet
|
|||||||
fk_entrepot integer, -- Entrepot de depart du produit
|
fk_entrepot integer, -- Entrepot de depart du produit
|
||||||
qty real, -- Quantity
|
qty real, -- Quantity
|
||||||
rang integer DEFAULT 0
|
rang integer DEFAULT 0
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -27,4 +27,4 @@ create table llx_export_compta
|
|||||||
fk_user integer NOT NULL,
|
fk_user integer NOT NULL,
|
||||||
note text
|
note text
|
||||||
|
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -28,4 +28,4 @@ create table llx_export_model
|
|||||||
label varchar(50) NOT NULL,
|
label varchar(50) NOT NULL,
|
||||||
type varchar(20) NOT NULL,
|
type varchar(20) NOT NULL,
|
||||||
field text NOT NULL
|
field text NOT NULL
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
@ -34,4 +34,4 @@ create table llx_extra_fields
|
|||||||
rank integer,
|
rank integer,
|
||||||
|
|
||||||
assign integer -- ???
|
assign integer -- ???
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -28,4 +28,4 @@ create table llx_extra_fields_options
|
|||||||
|
|
||||||
rank integer
|
rank integer
|
||||||
|
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -33,4 +33,4 @@ create table llx_extra_fields_values
|
|||||||
fk_user_create integer,
|
fk_user_create integer,
|
||||||
fk_user_modif integer
|
fk_user_modif integer
|
||||||
|
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -71,4 +71,4 @@ create table llx_facture
|
|||||||
model_pdf varchar(255),
|
model_pdf varchar(255),
|
||||||
import_key varchar(14)
|
import_key varchar(14)
|
||||||
|
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -64,4 +64,4 @@ create table llx_facture_fourn
|
|||||||
model_pdf varchar(255),
|
model_pdf varchar(255),
|
||||||
import_key varchar(14)
|
import_key varchar(14)
|
||||||
|
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -43,4 +43,4 @@ create table llx_facture_fourn_det
|
|||||||
date_start datetime DEFAULT NULL, -- date debut si service
|
date_start datetime DEFAULT NULL, -- date debut si service
|
||||||
date_end datetime DEFAULT NULL, -- date fin si service
|
date_end datetime DEFAULT NULL, -- date fin si service
|
||||||
import_key varchar(14)
|
import_key varchar(14)
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -54,4 +54,4 @@ create table llx_facture_rec
|
|||||||
date_last_gen datetime DEFAULT NULL,
|
date_last_gen datetime DEFAULT NULL,
|
||||||
nb_gen_done integer DEFAULT NULL,
|
nb_gen_done integer DEFAULT NULL,
|
||||||
nb_gen_max integer DEFAULT NULL
|
nb_gen_max integer DEFAULT NULL
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -52,7 +52,7 @@ create table llx_facturedet
|
|||||||
special_code integer UNSIGNED DEFAULT 0, -- code pour les lignes speciales
|
special_code integer UNSIGNED DEFAULT 0, -- code pour les lignes speciales
|
||||||
rang integer DEFAULT 0, -- ordre d'affichage
|
rang integer DEFAULT 0, -- ordre d'affichage
|
||||||
import_key varchar(14)
|
import_key varchar(14)
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- List of codes for special_code
|
-- List of codes for special_code
|
||||||
|
|||||||
@ -44,4 +44,4 @@ create table llx_facturedet_rec
|
|||||||
total_ttc double(24,8), -- Total TTC de la ligne toute quantity et incluant remise ligne et globale
|
total_ttc double(24,8), -- Total TTC de la ligne toute quantity et incluant remise ligne et globale
|
||||||
special_code integer UNSIGNED DEFAULT 0, -- code pour les lignes speciales
|
special_code integer UNSIGNED DEFAULT 0, -- code pour les lignes speciales
|
||||||
rang integer DEFAULT 0 -- ordre d'affichage
|
rang integer DEFAULT 0 -- ordre d'affichage
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -40,4 +40,4 @@ create table llx_fichinter
|
|||||||
note_public text,
|
note_public text,
|
||||||
model_pdf varchar(255)
|
model_pdf varchar(255)
|
||||||
|
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -27,4 +27,4 @@ create table llx_fichinterdet
|
|||||||
description text, -- description de la ligne d'intervention
|
description text, -- description de la ligne d'intervention
|
||||||
duree integer, -- duree de la ligne d'intervention
|
duree integer, -- duree de la ligne d'intervention
|
||||||
rang integer DEFAULT 0 -- ordre affichage sur la fiche
|
rang integer DEFAULT 0 -- ordre affichage sur la fiche
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -27,4 +27,4 @@ create table llx_import_model
|
|||||||
label varchar(50) NOT NULL,
|
label varchar(50) NOT NULL,
|
||||||
type varchar(20) NOT NULL,
|
type varchar(20) NOT NULL,
|
||||||
field text NOT NULL
|
field text NOT NULL
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
@ -40,4 +40,4 @@ create table llx_livraison
|
|||||||
note_public text,
|
note_public text,
|
||||||
model_pdf varchar(255)
|
model_pdf varchar(255)
|
||||||
|
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -30,4 +30,4 @@ create table llx_livraisondet
|
|||||||
subprice double(24,8) DEFAULT 0, -- prix unitaire
|
subprice double(24,8) DEFAULT 0, -- prix unitaire
|
||||||
total_ht double(24,8) DEFAULT 0, -- Total HT de la ligne toute quantite
|
total_ht double(24,8) DEFAULT 0, -- Total HT de la ligne toute quantite
|
||||||
rang integer DEFAULT 0
|
rang integer DEFAULT 0
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -51,7 +51,7 @@ create table llx_mailing
|
|||||||
joined_file2 varchar(255),
|
joined_file2 varchar(255),
|
||||||
joined_file3 varchar(255),
|
joined_file3 varchar(255),
|
||||||
joined_file4 varchar(255)
|
joined_file4 varchar(255)
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- List of codes for the field entity
|
-- List of codes for the field entity
|
||||||
|
|||||||
@ -34,5 +34,5 @@ create table llx_mailing_cibles
|
|||||||
source_id integer,
|
source_id integer,
|
||||||
source_type varchar(16),
|
source_type varchar(16),
|
||||||
date_envoi datetime
|
date_envoi datetime
|
||||||
)type=innodb;
|
)ENGINE=innodb;
|
||||||
|
|
||||||
|
|||||||
@ -41,7 +41,7 @@ CREATE TABLE llx_menu
|
|||||||
enabled varchar(255) NULL default '1', -- Condition to show or hide
|
enabled varchar(255) NULL default '1', -- Condition to show or hide
|
||||||
usertype integer NOT NULL default '0', -- 0 if menu for all users, 1 for external only, 2 for internal only
|
usertype integer NOT NULL default '0', -- 0 if menu for all users, 1 for external only, 2 for internal only
|
||||||
tms timestamp
|
tms timestamp
|
||||||
) type=innodb;
|
) ENGINE=innodb;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- List of codes for the field entity
|
-- List of codes for the field entity
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user