Fix: SQL Syntax error.
Fix: A ref_ext can not be NOT NULL. New: Add tms field into table llx_bordereau_cheque.
This commit is contained in:
parent
09fd904e76
commit
e3b38cf3bb
@ -276,5 +276,7 @@ INSERT INTO llx_c_departements ( code_departement, fk_region, cheflieu, tncc, nc
|
|||||||
INSERT INTO llx_c_departements ( code_departement, fk_region, cheflieu, tncc, ncc, nom, active) VALUES('TN23', 1001, '', 0, '', 'Tunis', 1);
|
INSERT INTO llx_c_departements ( code_departement, fk_region, cheflieu, tncc, ncc, nom, active) VALUES('TN23', 1001, '', 0, '', 'Tunis', 1);
|
||||||
INSERT INTO llx_c_departements ( code_departement, fk_region, cheflieu, tncc, ncc, nom, active) VALUES('TN24', 1001, '', 0, '', 'Zaghouan', 1);
|
INSERT INTO llx_c_departements ( code_departement, fk_region, cheflieu, tncc, ncc, nom, active) VALUES('TN24', 1001, '', 0, '', 'Zaghouan', 1);
|
||||||
|
|
||||||
# Add ref_ext on bordereau_cheque
|
-- Add ref_ext on bordereau_cheque
|
||||||
ALTER TABLE `llx_bordereau_cheque` ADD `ref_ext` VARCHAR( 255 ) NOT NULL;
|
ALTER TABLE llx_bordereau_cheque ADD ref_ext VARCHAR(255);
|
||||||
|
ALTER TABLE llx_bordereau_cheque ADD tms timestamp;
|
||||||
|
|
||||||
|
|||||||
@ -24,16 +24,16 @@
|
|||||||
create table llx_bordereau_cheque
|
create table llx_bordereau_cheque
|
||||||
(
|
(
|
||||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
number varchar(16) NOT NULL, -- ref
|
||||||
|
ref_ext varchar(255), -- ref_ext
|
||||||
datec datetime NOT NULL,
|
datec datetime NOT NULL,
|
||||||
date_bordereau date, -- A quoi sert cette date ?
|
date_bordereau date, -- A quoi sert cette date ?
|
||||||
number varchar(16) NOT NULL,
|
|
||||||
entity integer DEFAULT 1 NOT NULL, -- multi company id
|
|
||||||
amount double(24,8) NOT NULL,
|
amount double(24,8) NOT NULL,
|
||||||
nbcheque smallint NOT NULL,
|
nbcheque smallint NOT NULL,
|
||||||
fk_bank_account integer,
|
fk_bank_account integer,
|
||||||
fk_user_author integer,
|
fk_user_author integer,
|
||||||
note text,
|
|
||||||
statut smallint NOT NULL DEFAULT 0,
|
statut smallint NOT NULL DEFAULT 0,
|
||||||
ref_ext varchar(255)
|
tms timestamp,
|
||||||
|
note text,
|
||||||
|
entity integer DEFAULT 1 NOT NULL -- multi company id
|
||||||
)ENGINE=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user