[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 37/46: Bug database.class.php : n'applique pa
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 37/46: Bug database.class.php : n'applique pas le patch |
Date: |
Mon, 4 May 2020 13:38:53 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 8561404518a2b3a38dfaa435253b49d1f19af9b4
Author: Dany De Bontridder <address@hidden>
AuthorDate: Sat Apr 4 14:28:47 2020 +0200
Bug database.class.php : n'applique pas le patch
---
include/class/database.class.php | 4 ++--
include/lib/database_core.class.php | 1 +
include/sql/patch/upgrade142.sql | 7 ++++---
3 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/include/class/database.class.php b/include/class/database.class.php
index 216d3f4..101cc5e 100644
--- a/include/class/database.class.php
+++ b/include/class/database.class.php
@@ -133,7 +133,6 @@ class Database extends DatabaseCore
echo '<ul style="list-type-style:square">';
for ($i = 4; $i <= $MaxVersion; $i++) {
$to = $i + 1;
-
if ($this->get_version() <= $i) {
if ($this->get_version() == 97) {
if ($this->exist_schema("amortissement")) {
@@ -145,7 +144,8 @@ class Database extends DatabaseCore
echo "<li>Patching " . $p_name .
" from the version " . $this->get_version() . " to $to ";
-
+ $this->execute_script(NOALYSS_INCLUDE . '/sql/patch/upgrade' .
$i . '.sql');
+ echo $succeed;
if (!DEBUG)
ob_start();
diff --git a/include/lib/database_core.class.php
b/include/lib/database_core.class.php
index 3deb582..098b7d6 100644
--- a/include/lib/database_core.class.php
+++ b/include/lib/database_core.class.php
@@ -284,6 +284,7 @@ class DatabaseCore
if ($hf == false) {
throw new Exception ('Ne peut ouvrir ' . $script);
}
+ printf (" open %s <br>", $script);
$sql = "";
$flag_function = false;
while (!feof($hf)) {
diff --git a/include/sql/patch/upgrade142.sql b/include/sql/patch/upgrade142.sql
index 3afaed6..35dc934 100644
--- a/include/sql/patch/upgrade142.sql
+++ b/include/sql/patch/upgrade142.sql
@@ -2,7 +2,7 @@ begin;
CREATE OR REPLACE FUNCTION comptaproc.find_pcm_type(pp_value account_type)
RETURNS text
-AS $function$
+AS $BODY$
declare
str_type parm_poste.p_type%TYPE;
str_value parm_poste.p_type%TYPE;
@@ -37,7 +37,8 @@ begin
-- si ni parent ou parm_poste alors return CON
return 'CON';
end;
-$function$
- LANGUAGE plpgsql;
+$BODY$
+LANGUAGE plpgsql;
+
insert into version (val,v_description) values (143,'Corrige function
find_pcm_type');
commit ;
- [Noalyss-commit] [noalyss] 35/46: Bug #0001245: Type actif - passif pour nouvelle fiche à partir de fiche Erreur dans PARM_POSTE pour la compta française, (continued)
- [Noalyss-commit] [noalyss] 35/46: Bug #0001245: Type actif - passif pour nouvelle fiche à partir de fiche Erreur dans PARM_POSTE pour la compta française, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 28/46: Task #0001793: Installation mot de passe remove debug info, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 33/46: Task #1277 : RTF conversion char accentuated, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 36/46: Merge branch 'dev7202', Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 38/46: Fiche.Test : add test cmp_name and get_row, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 40/46: Fix cosmetic and typo, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 22/46: HtmlOutput tab , add mode row, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 27/46: Task #0001793: Installation mot de passe, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 29/46: Task #0001793: Installation mot de passe for password , use NOALYSS_ADMIN_PASSWORD, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 31/46: Task #0001793: Installation mot de passe Adapt comment, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 37/46: Bug database.class.php : n'applique pas le patch,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 39/46: Test Unit Acc_Account_Legder , rounded value fixed, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 41/46: Cleanup + new logo, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 43/46: Improve installation for MONO : doc + password, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 45/46: Output_Tab : set mode to row by default + cosmetic, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 46/46: Merge branch 'dev7220' into pre7300, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 42/46: Improve installation for MONO : doc + password, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 44/46: fixup! Fix cosmetic and typo, Dany De Bontridder, 2020/05/04