[Mapbender-commits] r2832 - branches/spsneo_dev/mapbender/update

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Aug 15 13:01:44 EDT 2008


Author: spsneo
Date: 2008-08-15 13:01:44 -0400 (Fri, 15 Aug 2008)
New Revision: 2832

Modified:
   branches/spsneo_dev/mapbender/update/updaters.inc
Log:
Chnaged the update db folder

Modified: branches/spsneo_dev/mapbender/update/updaters.inc
===================================================================
--- branches/spsneo_dev/mapbender/update/updaters.inc	2008-08-15 15:41:19 UTC (rev 2831)
+++ branches/spsneo_dev/mapbender/update/updaters.inc	2008-08-15 17:01:44 UTC (rev 2832)
@@ -6,7 +6,7 @@
 #locates the correct directory containing the sql files to be executed.
 #parse the sql files and execute the queries 
 #
-#SQL files are to be placed in /update/db/SYS_DBTYPE/CHARSET directory. 
+#SQL files are to be placed in /resources/db/SYS_DBTYPE/CHARSET/update/ directory. 
 #where SYS_DBTYPE is the constant defining the database type and CHARSET defines the encoding 
 # these constants are defined in /conf/mapbender.conf file
 #SQL files should have .sql extension
@@ -19,7 +19,7 @@
 	#select the database
 	db_select_db(DB,$con);
 	#locate the correct directory according to SYS_DBTYPE and CHARSET
-	$db_dir = dir('./db/'.SYS_DBTYPE.'/'.CHARSET);
+	$db_dir = dir(realpath(dirname(__FILE__).'/../resources/db/'.SYS_DBTYPE.'/'.CHARSET.'/update/'));
 	#Get the path of directory containing the sql files for later use in this function
 	$db_dir_path = $db_dir->path;
 	#this loops iterates for every file in the directory located



More information about the Mapbender_commits mailing list