Skip to content
Browse files

Added pass/fail marker for each SQL query

  • Loading branch information...
1 parent c5f51ff commit 4a1123d3d0fda900552f4124f0c0cd58fd1c65c5 @b-turchyn committed May 26, 2011
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/install/index.php
View
8 src/install/index.php
@@ -33,7 +33,13 @@
// Iterate through each file
foreach($files as $key => $value) {
if(preg_match("/.sql$/", $value)) {
- print_r($sql->runQueryFromFile($value));
+ $res = $sql->runQueryFromFile($value);
+ echo preg_replace("/.sql$/", "", $value) . " ==> ";
+ if(is_array($res) && $res[0] == 0) {
+ echo "<span style=\"color: green\">Passed</span><br />\n";
+ } else {
+ echo "<span style=\"color: red\">FAILED</span><br />\n";
+ }
}
}

0 comments on commit 4a1123d

Please sign in to comment.
Something went wrong with that request. Please try again.