projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
547a25e
)
UpdateDatabase.php
author
Alan Knowles
<alan@roojs.com>
Mon, 9 Dec 2013 07:41:49 +0000
(15:41 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 9 Dec 2013 07:41:49 +0000
(15:41 +0800)
UpdateDatabase.php
patch
|
blob
|
history
diff --git
a/UpdateDatabase.php
b/UpdateDatabase.php
index
91c3fad
..
02bdfc6
100644
(file)
--- a/
UpdateDatabase.php
+++ b/
UpdateDatabase.php
@@
-334,6
+334,14
@@
class Pman_Core_UpdateDatabase extends Pman
echo $psql_cmd . "\n" ;
echo "scan : $dir\n";
+
+ $files = glob($dir.'/*.sql');
+ sort($files);
+ $lsort = create_function('$a,$b','return strlen($a) > strlen($b) ? 1 : -1;');
+ usort($files, $lsort);
+
+
+
foreach(glob($dir.'/*.sql') as $bfn) {