+2014-11-21 Ryosuke Niwa <rniwa@webkit.org>
+
+ Unreviewed. Fixed syntax errors.
+
+ * init-database.sql:
+ * public/api/commits.php:
+
2014-11-21 Ryosuke Niwa <rniwa@webkit.org>
The dashboard on new perf monitor should be configurable
task_metric integer REFERENCES test_metrics NOT NULL,
task_start_run integer REFERENCES test_runs,
task_end_run integer REFERENCES test_runs,
- CONSTRAINT analysis_task_should_be_unique_for_range UNIQUE(task_start_run, task_end_run)
+ CONSTRAINT analysis_task_should_be_unique_for_range UNIQUE(task_start_run, task_end_run),
CONSTRAINT analysis_task_should_not_be_associated_with_single_run
CHECK ((task_start_run IS NULL AND task_end_run IS NULL) OR (task_start_run IS NOT NULL AND task_end_run IS NOT NULL)));
$values = array($repository_id);
if ($first && $second) {
- $first = commit_from_revision($db, $repository_id, $first)['commit_time'];
- $second = commit_from_revision($db, $repository_id, $second)['commit_time'];
+ $fitrt_commit = commit_from_revision($db, $repository_id, $first);
+ $second_commit = commit_from_revision($db, $repository_id, $second);
+ $first = $fitrt_commit['commit_time'];
+ $second = $second_commit['commit_time'];
$in_order = $first < $second;
array_push($values, $in_order ? $first : $second);
$statements .= ' AND commit_time >= $' . count($values);