Restructure file , remove html/admin , backup ...
This commit is contained in:
parent
b57df7c0e8
commit
896f3624c7
169 changed files with 48 additions and 54 deletions
31
include/sql/patch/upgrade78.sql
Normal file
31
include/sql/patch/upgrade78.sql
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
begin;
|
||||
|
||||
DROP FUNCTION if exists comptaproc.action_get_tree(bigint);
|
||||
|
||||
CREATE OR REPLACE FUNCTION comptaproc.action_get_tree(p_id bigint)
|
||||
RETURNS setof bigint AS
|
||||
$BODY$
|
||||
|
||||
declare
|
||||
e bigint;
|
||||
i bigint;
|
||||
begin
|
||||
for e in select ag_id from action_gestion where ag_ref_ag_id=p_id
|
||||
loop
|
||||
for i in select action_get_tree from comptaproc.action_get_tree(e)
|
||||
loop
|
||||
raise notice ' == i %', i;
|
||||
return next i;
|
||||
end loop;
|
||||
raise notice ' = e %', e;
|
||||
return next e;
|
||||
end loop;
|
||||
return;
|
||||
|
||||
end;
|
||||
$BODY$
|
||||
LANGUAGE 'plpgsql' VOLATILE;
|
||||
|
||||
update version set val=79;
|
||||
|
||||
commit;
|
||||
Loading…
Add table
Add a link
Reference in a new issue