[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] branch devel updated: upgrade.sql -> upgrade1
From: |
dwm |
Subject: |
[Noalyss-commit] [noalyss] branch devel updated: upgrade.sql -> upgrade191.sql |
Date: |
Wed, 17 Jan 2024 13:07:59 -0500 |
This is an automated email from the git hooks/post-receive script.
sparkyx pushed a commit to branch devel
in repository noalyss.
The following commit(s) were added to refs/heads/devel by this push:
new e8af3fc7a upgrade.sql -> upgrade191.sql
e8af3fc7a is described below
commit e8af3fc7aa53bced1f674b68ce9daea5a2aa86cc
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Wed Jan 17 19:02:31 2024 +0100
upgrade.sql -> upgrade191.sql
---
include/constant.php | 2 +-
.../sql/patch/upgrade191.sql | 7 +++++-
sql/upgrade.sql | 28 ----------------------
3 files changed, 7 insertions(+), 30 deletions(-)
diff --git a/include/constant.php b/include/constant.php
index 5ac2b51c3..05c93f435 100644
--- a/include/constant.php
+++ b/include/constant.php
@@ -123,7 +123,7 @@ if (!defined("NOALYSS_PACKAGE_REPOSITORY")) {
if (!defined("SYSINFO_DISPLAY")) {
define("SYSINFO_DISPLAY", TRUE);
}
-define("DBVERSION", 191);
+define("DBVERSION", 192);
define("MONO_DATABASE", 25);
define("DBVERSIONREPO", 20);
define('NOTFOUND', '--not found--');
diff --git a/sql/upgrade.sql b/include/sql/patch/upgrade191.sql
similarity index 84%
copy from sql/upgrade.sql
copy to include/sql/patch/upgrade191.sql
index 118d757f2..1da66515b 100644
--- a/sql/upgrade.sql
+++ b/include/sql/patch/upgrade191.sql
@@ -1,3 +1,5 @@
+begin;
+
CREATE OR REPLACE FUNCTION comptaproc.get_follow_up_tree(action_gestion_id
integer)
RETURNS SETOF integer
@@ -25,4 +27,7 @@ begin
end;
$function$
;
-
\ No newline at end of file
+
+
+insert into version (val,v_description) values (192,'2323 : tree for depending
event');
+commit;
\ No newline at end of file
diff --git a/sql/upgrade.sql b/sql/upgrade.sql
index 118d757f2..e69de29bb 100644
--- a/sql/upgrade.sql
+++ b/sql/upgrade.sql
@@ -1,28 +0,0 @@
-CREATE OR REPLACE FUNCTION comptaproc.get_follow_up_tree(action_gestion_id
integer)
- RETURNS SETOF integer
-
- LANGUAGE plpgsql
-AS $function$
-declare
- i int;
- x int;
- e int;
-begin
- for x in select aga_least
- from action_gestion_related
- where
- aga_greatest = action_gestion_id
- loop
- return next x;
-
- for e in select * from comptaproc.get_follow_up_tree(x)
- loop
- return next e;
- end loop;
-
- end loop;
- return;
-end;
-$function$
-;
-
\ No newline at end of file
- [Noalyss-commit] [noalyss] branch devel updated: upgrade.sql -> upgrade191.sql,
dwm <=