Restructure file , remove html/admin , backup ...
This commit is contained in:
parent
b57df7c0e8
commit
896f3624c7
169 changed files with 48 additions and 54 deletions
40
include/sql/patch/upgrade60.sql
Normal file
40
include/sql/patch/upgrade60.sql
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
begin;
|
||||
alter SEQUENCE document_type_dt_id_seq start 25;
|
||||
|
||||
insert into document_type (dt_id,dt_value) values (20,'Réception commande Fournisseur');
|
||||
insert into document_type (dt_id,dt_value) values (21,'Réception commande Client');
|
||||
insert into document_type (dt_id,dt_value) values (22,'Réception magazine');
|
||||
|
||||
CREATE OR REPLACE FUNCTION extension_ins_upd()
|
||||
RETURNS "trigger" AS
|
||||
$BODY$
|
||||
declare
|
||||
sCode text;
|
||||
sFile text;
|
||||
begin
|
||||
sCode:=trim(upper(NEW.ex_code));
|
||||
sCode:=replace(sCode,' ','_');
|
||||
sCode:=substr(sCode,1,15);
|
||||
sCode=upper(sCode);
|
||||
NEW.ex_code:=sCode;
|
||||
-- remove forbidden char
|
||||
sFile:=NEW.ex_file;
|
||||
sFile:=replace(sFile,';','_');
|
||||
sFile:=replace(sFile,'<','_');
|
||||
sFile:=replace(sFile,'>','_');
|
||||
sFile:=replace(sFile,'..','');
|
||||
sFile:=replace(sFile,'&','');
|
||||
sFile:=replace(sFile,'|','');
|
||||
|
||||
|
||||
|
||||
return NEW;
|
||||
|
||||
end;
|
||||
|
||||
$BODY$
|
||||
LANGUAGE 'plpgsql';
|
||||
|
||||
update version set val=61;
|
||||
|
||||
commit;
|
||||
Loading…
Add table
Add a link
Reference in a new issue