Fix: compatibility with mysql 5.5+

This commit is contained in:
Regis Houssin 2011-02-24 09:57:02 +00:00
parent 3caea30704
commit e28ab7f759
148 changed files with 154 additions and 154 deletions

View File

@ -28,4 +28,4 @@ create table llx_accountingaccount
account_number varchar(20) NOT NULL,
account_parent varchar(20),
label varchar(128) NOT NULL
)type=innodb;
)ENGINE=innodb;

View File

@ -25,4 +25,4 @@ create table llx_accountingdebcred
account_number varchar(20) NOT NULL,
amount real NOT NULL,
direction varchar(1) NOT NULL
)type=innodb;
)ENGINE=innodb;

View File

@ -28,4 +28,4 @@ create table llx_accountingsystem
fk_author varchar(20),
tms timestamp,
active smallint DEFAULT 0
)type=innodb;
)ENGINE=innodb;

View File

@ -29,4 +29,4 @@ create table llx_accountingtransaction
fk_source integer NOT NULL,
sourcetype varchar(16) NOT NULL,
url varchar(255)
)type=innodb;
)ENGINE=innodb;

View File

@ -28,4 +28,4 @@ create table llx_action_def
titre varchar(255) NOT NULL,
description text,
objet_type varchar(16) NOT NULL
)type=innodb;
)ENGINE=innodb;

View File

@ -61,7 +61,7 @@ create table llx_actioncomm
fk_supplier_order integer,
fk_supplier_invoice integer
)type=innodb;
)ENGINE=innodb;

View File

@ -61,4 +61,4 @@ create table llx_adherent
fk_user_mod integer,
fk_user_valid integer,
import_key varchar(14) -- Import key
)type=innodb;
)ENGINE=innodb;

View File

@ -25,4 +25,4 @@ create table llx_adherent_options
rowid integer AUTO_INCREMENT PRIMARY KEY,
tms timestamp,
fk_member integer NOT NULL -- member id
)type=innodb;
)ENGINE=innodb;

View File

@ -30,4 +30,4 @@ create table llx_adherent_options_label
type varchar(8),
size integer DEFAULT 0,
pos integer DEFAULT 0
)type=innodb;
)ENGINE=innodb;

View File

@ -35,4 +35,4 @@ create table llx_adherent_type
vote varchar(3) NOT NULL DEFAULT 'yes',
note text,
mail_valid text -- mail envoye a la validation
)type=innodb;
)ENGINE=innodb;

View File

@ -39,4 +39,4 @@ create table llx_bank
banque varchar(255), -- banque pour les cheques
emetteur varchar(255), -- emetteur du cheque
author varchar(40) -- a supprimer apres migration
)type=innodb;
)ENGINE=innodb;

View File

@ -54,7 +54,7 @@ create table llx_bank_account
min_allowed integer DEFAULT 0,
min_desired integer DEFAULT 0,
comment text
)type=innodb;
)ENGINE=innodb;
--
-- List of codes for the field entity

View File

@ -24,4 +24,4 @@ create table llx_bank_categ
rowid integer AUTO_INCREMENT PRIMARY KEY,
label varchar(255),
entity integer DEFAULT 1 NOT NULL -- multi company id
)type=innodb;
)ENGINE=innodb;

View File

@ -22,4 +22,4 @@ create table llx_bank_class
(
lineid integer NOT NULL,
fk_categ integer NOT NULL
)type=innodb;
)ENGINE=innodb;

View File

@ -27,4 +27,4 @@ create table llx_bank_url
url varchar(255),
label varchar(255),
type varchar(20) NOT NULL
)type=innodb;
)ENGINE=innodb;

View File

@ -29,4 +29,4 @@ create table llx_bookmark
title varchar(64),
favicon varchar(24),
position integer DEFAULT 0
)type=innodb;
)ENGINE=innodb;

View File

@ -37,4 +37,4 @@ create table llx_bordereau_cheque
note text,
statut smallint NOT NULL DEFAULT 0
)type=innodb;
)ENGINE=innodb;

View File

@ -31,4 +31,4 @@ create table llx_boxes
position smallint NOT NULL,
box_order varchar(3) NOT NULL,
fk_user integer default 0 NOT NULL
)type=innodb;
)ENGINE=innodb;

View File

@ -27,4 +27,4 @@ create table llx_boxes_def
entity integer DEFAULT 1 NOT NULL, -- multi company id
tms timestamp,
note varchar(130) -- Do not increase this as file+note must be small to allow index
)type=innodb;
)ENGINE=innodb;

View File

@ -29,4 +29,4 @@ create table llx_c_actioncomm
active tinyint DEFAULT 1 NOT NULL,
todo tinyint,
position integer NOT NULL DEFAULT 0
)type=innodb;
)ENGINE=innodb;

View File

@ -28,4 +28,4 @@ create table llx_c_barcode_type
coder varchar(16) NOT NULL,
example varchar(16) NOT NULL
)type=innodb;
)ENGINE=innodb;

View File

@ -27,7 +27,7 @@ create table llx_c_chargesociales
active tinyint DEFAULT 1 NOT NULL,
code varchar(12) NOT NULL,
fk_pays integer DEFAULT 1 NOT NULL
)type=innodb;
)ENGINE=innodb;

View File

@ -25,5 +25,5 @@ create table llx_c_civilite
code varchar(6) UNIQUE NOT NULL,
civilite varchar(50),
active tinyint DEFAULT 1 NOT NULL
)type=innodb;
)ENGINE=innodb;

View File

@ -25,5 +25,5 @@ create table llx_c_currencies
label varchar(64),
labelsing varchar(64),
active tinyint DEFAULT 1 NOT NULL
)type=innodb;
)ENGINE=innodb;

View File

@ -29,7 +29,7 @@ create table llx_c_departements
ncc varchar(50),
nom varchar(50),
active tinyint DEFAULT 1 NOT NULL
)type=innodb;
)ENGINE=innodb;

View File

@ -28,4 +28,4 @@ create table llx_c_ecotaxe
organization varchar(255), -- Organisme gerant le bareme tarifaire
fk_pays integer NOT NULL, -- Pays correspondant
active tinyint DEFAULT 1 NOT NULL
)type=innodb;
)ENGINE=innodb;

View File

@ -25,5 +25,5 @@ create table llx_c_effectif
code varchar(12) UNIQUE NOT NULL,
libelle varchar(30),
active tinyint DEFAULT 1 NOT NULL
)type=innodb;
)ENGINE=innodb;

View File

@ -33,4 +33,4 @@ create table llx_c_field_list
enabled varchar(255) DEFAULT 1, -- Condition to show or hide
rang integer DEFAULT 0
)type=innodb;
)ENGINE=innodb;

View File

@ -27,5 +27,5 @@ create table llx_c_forme_juridique
libelle varchar(255),
isvatexempted tinyint DEFAULT 0 NOT NULL,
active tinyint DEFAULT 1 NOT NULL
)type=innodb;
)ENGINE=innodb;

View File

@ -25,5 +25,5 @@ create table llx_c_methode_commande_fournisseur
code varchar(30),
libelle varchar(60),
active tinyint default 1 NOT NULL
)type=innodb;
)ENGINE=innodb;

View File

@ -33,7 +33,7 @@ create table llx_c_paiement
libelle varchar(30),
type smallint,
active tinyint DEFAULT 1 NOT NULL
)type=innodb;
)ENGINE=innodb;

View File

@ -25,9 +25,9 @@ create table llx_c_paper_format
label varchar(50) NOT NULL,
width float(6,2) DEFAULT 0, -- Largeur 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
)type=innodb;
)ENGINE=innodb;
--
-- Conversion

View File

@ -29,4 +29,4 @@ create table llx_c_payment_term
fdm tinyint, -- reglement fin de mois
nbjour smallint,
decalage smallint
)type=innodb;
)ENGINE=innodb;

View File

@ -26,4 +26,4 @@ create table llx_c_pays
code_iso varchar(3) ,
libelle varchar(50) NOT NULL,
active tinyint DEFAULT 1 NOT NULL
)type=innodb;
)ENGINE=innodb;

View File

@ -25,5 +25,5 @@ create table llx_c_propalst
code varchar(12) UNIQUE NOT NULL,
label varchar(30),
active tinyint DEFAULT 1 NOT NULL
)type=innodb;
)ENGINE=innodb;

View File

@ -24,5 +24,5 @@ create table llx_c_prospectlevel
label varchar(30),
sortorder smallint,
active smallint DEFAULT 1 NOT NULL
) type=innodb;
) ENGINE=innodb;

View File

@ -28,5 +28,5 @@ create table llx_c_regions
tncc integer,
nom varchar(50),
active tinyint DEFAULT 1 NOT NULL
)type=innodb;
)ENGINE=innodb;

View File

@ -26,4 +26,4 @@ create table llx_c_shipment_mode
libelle varchar(50) NOT NULL,
description text,
active tinyint DEFAULT 0
)type=innodb;
)ENGINE=innodb;

View File

@ -25,5 +25,5 @@ create table llx_c_stcomm
code varchar(12) UNIQUE NOT NULL,
libelle varchar(30),
active tinyint default 1 NOT NULL
)type=innodb;
)ENGINE=innodb;

View File

@ -31,5 +31,5 @@ create table llx_c_tva
active tinyint DEFAULT 1 NOT NULL,
accountancy_code varchar(15) DEFAULT NULL
)type=innodb;
)ENGINE=innodb;

View File

@ -36,4 +36,4 @@ create table llx_c_type_contact
code varchar(16) NOT NULL,
libelle varchar(64) NOT NULL,
active tinyint DEFAULT 1 NOT NULL
)type=innodb;
)ENGINE=innodb;

View File

@ -25,4 +25,4 @@ create table llx_c_type_fees
code varchar(12) UNIQUE NOT NULL,
libelle varchar(30),
active tinyint DEFAULT 1 NOT NULL
)type=innodb;
)ENGINE=innodb;

View File

@ -25,4 +25,4 @@ create table llx_c_typent
code varchar(12) UNIQUE NOT NULL,
libelle varchar(30),
active tinyint DEFAULT 1 NOT NULL
)type=innodb;
)ENGINE=innodb;

View File

@ -26,4 +26,4 @@ create table llx_c_ziptown
zip varchar(10) NOT NULL, -- Zip code
town varchar(255) NOT NULL, -- Town name
active tinyint NOT NULL DEFAULT 1
)type=innodb;
)ENGINE=innodb;

View File

@ -30,7 +30,7 @@ create table llx_categorie
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
import_key varchar(14) -- Import key
)type=innodb;
)ENGINE=innodb;
--
-- List of codes for the field type

View File

@ -23,4 +23,4 @@ create table llx_categorie_association
(
fk_categorie_mere integer NOT NULL,
fk_categorie_fille integer NOT NULL
)type=innodb;
)ENGINE=innodb;

View File

@ -23,4 +23,4 @@ create table llx_categorie_fournisseur
fk_categorie integer NOT NULL,
fk_societe integer NOT NULL,
UNIQUE (fk_categorie, fk_societe)
)type=innodb;
)ENGINE=innodb;

View File

@ -23,4 +23,4 @@ create table llx_categorie_member
(
fk_categorie integer NOT NULL,
fk_member integer NOT NULL
)type=innodb;
)ENGINE=innodb;

View File

@ -23,4 +23,4 @@ create table llx_categorie_product
(
fk_categorie integer NOT NULL,
fk_product integer NOT NULL
)type=innodb;
)ENGINE=innodb;

View File

@ -22,4 +22,4 @@ create table llx_categorie_societe
(
fk_categorie integer NOT NULL,
fk_societe integer NOT NULL
)type=innodb;
)ENGINE=innodb;

View File

@ -29,7 +29,7 @@ create table llx_chargesociales
amount real default 0 NOT NULL,
paye smallint default 0 NOT NULL,
periode date
)type=innodb;
)ENGINE=innodb;
--
-- List of codes for the field entity

View File

@ -61,4 +61,4 @@ create table llx_commande
date_livraison date default NULL,
fk_adresse_livraison integer, -- delivery address (deprecated)
import_key varchar(14)
)type=innodb;
)ENGINE=innodb;

View File

@ -51,7 +51,7 @@ create table llx_commande_fournisseur
note_public text,
model_pdf varchar(255),
fk_methode_commande integer default 0
)type=innodb;
)ENGINE=innodb;
--
-- List of codes for the field entity

View File

@ -23,8 +23,8 @@ create table llx_commande_fournisseur_dispatch
rowid integer AUTO_INCREMENT PRIMARY KEY,
fk_commande integer,
fk_product integer,
qty float, -- quantité
qty float, -- quantit<EFBFBD>
fk_entrepot integer,
fk_user integer,
datec datetime
)type=innodb;
)ENGINE=innodb;

View File

@ -28,4 +28,4 @@ create table llx_commande_fournisseur_log
fk_statut smallint NOT NULL,
fk_user integer NOT NULL,
comment varchar(255) NULL
)type=innodb;
)ENGINE=innodb;

View File

@ -44,4 +44,4 @@ create table llx_commande_fournisseurdet
date_start datetime DEFAULT NULL, -- date debut si service
date_end datetime DEFAULT NULL, -- date fin si service
info_bits integer DEFAULT 0 -- TVA NPR ou non
)type=innodb;
)ENGINE=innodb;

View File

@ -50,7 +50,7 @@ create table llx_commandedet
special_code integer UNSIGNED DEFAULT 0, -- code pour les lignes speciales
rang integer DEFAULT 0,
import_key varchar(14)
)type=innodb;
)ENGINE=innodb;
--
-- List of codes for special_code

View File

@ -31,4 +31,4 @@ create table llx_compta
valid tinyint DEFAULT 0,
note text
)type=innodb;
)ENGINE=innodb;

View File

@ -27,4 +27,4 @@ create table llx_compta_account
fk_user_author integer,
note text
)type=innodb;
)ENGINE=innodb;

View File

@ -28,4 +28,4 @@ create table llx_compta_compte_generaux
note text,
UNIQUE(numero)
)type=innodb;
)ENGINE=innodb;

View File

@ -35,7 +35,7 @@ create table llx_const
visible tinyint DEFAULT 1 NOT NULL,
note text,
tms timestamp
) type=innodb;
) ENGINE=innodb;
--
-- List of codes for the field entity

View File

@ -42,5 +42,5 @@ create table llx_contrat
note text,
note_public text
)type=innodb;
)ENGINE=innodb;

View File

@ -59,4 +59,4 @@ create table llx_contratdet
fk_user_cloture integer,
commentaire text
)type=innodb;
)ENGINE=innodb;

View File

@ -28,4 +28,4 @@ create table llx_contratdet_log
fk_user_author integer NOT NULL,
commentaire text
)type=innodb;
)ENGINE=innodb;

View File

@ -29,4 +29,4 @@ create table llx_cotisation
cotisation real,
fk_bank integer DEFAULT NULL,
note text
)type=innodb;
)ENGINE=innodb;

View File

@ -37,4 +37,4 @@ create table llx_deplacement
fk_projet integer DEFAULT 0,
note text,
note_public text
)type=innodb;
)ENGINE=innodb;

View File

@ -29,4 +29,4 @@ create table llx_document
fk_group integer NULL,
permissions char(9) DEFAULT 'rw-rw-rw'
)type=innodb;
)ENGINE=innodb;

View File

@ -25,4 +25,4 @@ create table llx_document_generator
classfile varchar(255) NOT NULL,
class varchar(255) NOT NULL
)type=innodb;
)ENGINE=innodb;

View File

@ -30,7 +30,7 @@ create table llx_document_model
type varchar(20) NOT NULL,
libelle varchar(255),
description text
)type=innodb;
)ENGINE=innodb;
--
-- List of codes for the field entity

View File

@ -27,6 +27,6 @@ create table llx_dolibarr_modules
active_date datetime NOT NULL,
active_version varchar(25) NOT NULL
)type=innodb;
)ENGINE=innodb;

View File

@ -24,5 +24,5 @@ create table llx_domain
datec datetime,
label varchar(255),
note text
)type=innodb;
)ENGINE=innodb;

View File

@ -47,4 +47,4 @@ create table llx_don
note_public text,
model_pdf varchar(255),
import_key varchar(14)
)type=innodb;
)ENGINE=innodb;

View File

@ -33,4 +33,4 @@ create table llx_ecm_directories
date_m timestamp,
fk_user_c integer,
fk_user_m integer
) type=innodb;
) ENGINE=innodb;

View File

@ -42,4 +42,4 @@ create table llx_ecm_documents
crc varchar(32) NOT NULL DEFAULT '', -- checksum
cryptkey varchar(50) NOT NULL DEFAULT '', -- crypt key
cipher varchar(50) NOT NULL DEFAULT 'twofish' -- crypt cipher
) type=innodb;
) ENGINE=innodb;

View File

@ -31,5 +31,5 @@ create table llx_element_contact
element_id int NOT NULL, -- la reference de l'element.
fk_c_type_contact int NOT NULL, -- nature du contact.
fk_socpeople integer NOT NULL
)type=innodb;
)ENGINE=innodb;

View File

@ -28,5 +28,5 @@ create table llx_element_element
sourcetype varchar(16) NOT NULL,
fk_target integer NOT NULL,
targettype varchar(16) NOT NULL
) type=innodb;
) ENGINE=innodb;

View File

@ -26,5 +26,5 @@ create table llx_element_rang
fk_child integer NOT NULL,
childtype varchar(16) NOT NULL,
rang integer DEFAULT 0
) type=innodb;
) ENGINE=innodb;

View File

@ -36,4 +36,4 @@ create table llx_entrepot
statut tinyint DEFAULT 1, -- 1 open, 0 close
valo_pmp float(12,4), -- valoristaion du stock en PMP
fk_user_author integer
)type=innodb;
)ENGINE=innodb;

View File

@ -35,7 +35,7 @@ create table llx_events
ip varchar(32) NOT NULL, -- ip
user_agent varchar(255) NULL, -- user agent
fk_object integer -- id of related object
) type=innodb;
) ENGINE=innodb;
--
-- List of codes for the field entity

View File

@ -48,4 +48,4 @@ create table llx_expedition
note text,
model_pdf varchar(255)
)type=innodb;
)ENGINE=innodb;

View File

@ -27,4 +27,4 @@ create table llx_expeditiondet
fk_entrepot integer, -- Entrepot de depart du produit
qty real, -- Quantity
rang integer DEFAULT 0
)type=innodb;
)ENGINE=innodb;

View File

@ -27,4 +27,4 @@ create table llx_export_compta
fk_user integer NOT NULL,
note text
)type=innodb;
)ENGINE=innodb;

View File

@ -28,4 +28,4 @@ create table llx_export_model
label varchar(50) NOT NULL,
type varchar(20) NOT NULL,
field text NOT NULL
)type=innodb;
)ENGINE=innodb;

View File

@ -34,4 +34,4 @@ create table llx_extra_fields
rank integer,
assign integer -- ???
)type=innodb;
)ENGINE=innodb;

View File

@ -28,4 +28,4 @@ create table llx_extra_fields_options
rank integer
)type=innodb;
)ENGINE=innodb;

View File

@ -33,4 +33,4 @@ create table llx_extra_fields_values
fk_user_create integer,
fk_user_modif integer
)type=innodb;
)ENGINE=innodb;

View File

@ -71,4 +71,4 @@ create table llx_facture
model_pdf varchar(255),
import_key varchar(14)
)type=innodb;
)ENGINE=innodb;

View File

@ -64,4 +64,4 @@ create table llx_facture_fourn
model_pdf varchar(255),
import_key varchar(14)
)type=innodb;
)ENGINE=innodb;

View File

@ -43,4 +43,4 @@ create table llx_facture_fourn_det
date_start datetime DEFAULT NULL, -- date debut si service
date_end datetime DEFAULT NULL, -- date fin si service
import_key varchar(14)
)type=innodb;
)ENGINE=innodb;

View File

@ -54,4 +54,4 @@ create table llx_facture_rec
date_last_gen datetime DEFAULT NULL,
nb_gen_done integer DEFAULT NULL,
nb_gen_max integer DEFAULT NULL
)type=innodb;
)ENGINE=innodb;

View File

@ -52,7 +52,7 @@ create table llx_facturedet
special_code integer UNSIGNED DEFAULT 0, -- code pour les lignes speciales
rang integer DEFAULT 0, -- ordre d'affichage
import_key varchar(14)
)type=innodb;
)ENGINE=innodb;
--
-- List of codes for special_code

View File

@ -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
special_code integer UNSIGNED DEFAULT 0, -- code pour les lignes speciales
rang integer DEFAULT 0 -- ordre d'affichage
)type=innodb;
)ENGINE=innodb;

View File

@ -40,4 +40,4 @@ create table llx_fichinter
note_public text,
model_pdf varchar(255)
)type=innodb;
)ENGINE=innodb;

View File

@ -27,4 +27,4 @@ create table llx_fichinterdet
description text, -- description de la ligne d'intervention
duree integer, -- duree de la ligne d'intervention
rang integer DEFAULT 0 -- ordre affichage sur la fiche
)type=innodb;
)ENGINE=innodb;

View File

@ -27,4 +27,4 @@ create table llx_import_model
label varchar(50) NOT NULL,
type varchar(20) NOT NULL,
field text NOT NULL
)type=innodb;
)ENGINE=innodb;

View File

@ -40,4 +40,4 @@ create table llx_livraison
note_public text,
model_pdf varchar(255)
)type=innodb;
)ENGINE=innodb;

View File

@ -30,4 +30,4 @@ create table llx_livraisondet
subprice double(24,8) DEFAULT 0, -- prix unitaire
total_ht double(24,8) DEFAULT 0, -- Total HT de la ligne toute quantite
rang integer DEFAULT 0
)type=innodb;
)ENGINE=innodb;

View File

@ -51,7 +51,7 @@ create table llx_mailing
joined_file2 varchar(255),
joined_file3 varchar(255),
joined_file4 varchar(255)
)type=innodb;
)ENGINE=innodb;
--
-- List of codes for the field entity

View File

@ -34,5 +34,5 @@ create table llx_mailing_cibles
source_id integer,
source_type varchar(16),
date_envoi datetime
)type=innodb;
)ENGINE=innodb;

View File

@ -41,7 +41,7 @@ CREATE TABLE llx_menu
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
tms timestamp
) type=innodb;
) ENGINE=innodb;
--
-- List of codes for the field entity

Some files were not shown because too many files have changed in this diff Show More