From bfee1c0a3dfe9c0b217ea78d989dda2c43ae848f Mon Sep 17 00:00:00 2001 From: sparkyx Date: Thu, 31 Mar 2005 15:28:45 +0000 Subject: [PATCH] Fix problem of version the scherma version of the REL100A is 4 and no 3 --- html/admin/setup.php | 6 +++--- html/admin/sql/account_repository/data.sql | 2 +- html/admin/sql/dossier1/data.sql | 2 +- html/admin/sql/mod1/data.sql | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/html/admin/setup.php b/html/admin/setup.php index 8631c55c7..488b509cf 100644 --- a/html/admin/setup.php +++ b/html/admin/setup.php @@ -277,7 +277,7 @@ for ($e=0;$e < $MaxDossier;$e++) { $db_row=pg_fetch_array($Resdossier,$e); echo "Patching ".$db_row['dos_name']."
"; $db=DbConnect($db_row['dos_id'],'dossier'); - if ( GetVersion($db) == 3 ) { + if ( GetVersion($db) == 4 ) { ExecuteScript($db,'sql/patch/upgrade4.sql'); $sql="select jrn_def_id from jrn_def "; @@ -309,9 +309,9 @@ for ($e=0;$e < $MaxDossier;$e++) { $sql=sprintf ("create sequence s_jrn_%d",$row['jrn_def_id']); ExecSql($db,$sql); } - } // version == 3 + } // version == 4 } $cn=DbConnect(); -if ( GetVersion($cn) == 3 ) { +if ( GetVersion($cn) == 4 ) { ExecuteScript($cn,'sql/patch/ac-upgrade4.sql'); } diff --git a/html/admin/sql/account_repository/data.sql b/html/admin/sql/account_repository/data.sql index 2bc405264..f00181ada 100644 --- a/html/admin/sql/account_repository/data.sql +++ b/html/admin/sql/account_repository/data.sql @@ -49,7 +49,7 @@ INSERT INTO jnt_use_dos (jnt_id, use_id, dos_id) VALUES (23, 5, 1); -- Name: version; Type: TABLE DATA; Schema: public; Owner: phpcompta -- -INSERT INTO "version" (val) VALUES (3); +INSERT INTO "version" (val) VALUES (4); -- diff --git a/html/admin/sql/dossier1/data.sql b/html/admin/sql/dossier1/data.sql index 14afa5f63..4c16e68a8 100644 --- a/html/admin/sql/dossier1/data.sql +++ b/html/admin/sql/dossier1/data.sql @@ -521,7 +521,7 @@ INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (604 -- Name: version; Type: TABLE DATA; Schema: public; Owner: phpcompta -- -INSERT INTO "version" (val) VALUES (3); +INSERT INTO "version" (val) VALUES (4); -- diff --git a/html/admin/sql/mod1/data.sql b/html/admin/sql/mod1/data.sql index ec5004bbc..f237a37c2 100644 --- a/html/admin/sql/mod1/data.sql +++ b/html/admin/sql/mod1/data.sql @@ -521,7 +521,7 @@ INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (101 -- Name: version; Type: TABLE DATA; Schema: public; Owner: phpcompta -- -INSERT INTO "version" (val) VALUES (3); +INSERT INTO "version" (val) VALUES (4); --